Vectors a Fortran 90 module for 3-dimensional vector and dyadic arithmetic
A major advance contained in the new Fortran 90 language standard is the ability to define new data types and the operators associated with them. Writing computer code to implement computations with real and complex three-dimensional vectors and dyadics is greatly simplified if the equations can be implemented directly, without the need to code the vector arithmetic explicitly. The Fortran 90 module described here defines new data types for real and complex 3-dimensional vectors and dyadics, along with the common operations needed to work with these objects. Routines to allow convenient initialization and output of the new types are also included. In keeping with the philosophy of data abstraction, the details of the implementation of the data types are maintained private, and the functions and operators are made generic to simplify the combining of real, complex, single- and double-precision vectors and dyadics.
- Research Organization:
- Sandia National Lab. (SNL-NM), Albuquerque, NM (United States)
- Sponsoring Organization:
- USDOE, Washington, DC (United States)
- DOE Contract Number:
- AC04-94AL85000
- OSTI ID:
- 576121
- Report Number(s):
- SAND-96-2775; ON: DE98002825; TRN: 98:001479
- Resource Relation:
- Other Information: PBD: Feb 1998
- Country of Publication:
- United States
- Language:
- English
Similar Records
Fortran 90 Source Module
A Fortran-90 Based Multiprecision System