Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Vectors a Fortran 90 module for 3-dimensional vector and dyadic arithmetic

Technical Report ·
DOI:https://doi.org/10.2172/576121· OSTI ID:576121

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 Labs., 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
Country of Publication:
United States
Language:
English

Similar Records

Fortran 90 Source Module
Software · Tue Jan 13 00:00:00 EST 1998 · OSTI ID:1230421

CHASM : Static Analysis and Automatic Code Generation for Improved Fortran 90 and C++ Interoperability /
Conference · Sun Dec 31 23:00:00 EST 2000 · OSTI ID:975726

FORSIG: an extension of FORTRAN with significance arithmetic
Technical Report · Wed Sep 01 00:00:00 EDT 1982 · OSTI ID:6830695