next up previous contents index
Next: Naming Scheme Up: Structure of LAPACK95 Previous: Levels of Routines   Contents   Index


Data Types and Precision

LAPACK95 driver and computational routines do not distinguish between real and complex data types or between single and double precision. To handle different precisions, a module block, la_precision.mod, is used to define named constants SP and DP for the KIND values of single and double precision, respectively:


  MODULE LA_PRECISION 

INTEGER, PARAMETER :: SP=KIND(1.0), DP=KIND(1.0D0)
END MODULE LA_PRECISION
In LAPACK95, all real and complex constructs are expressed in terms of a symbolic KIND value WP, which is defined by reference to the module la_precision.mod as follows:

USE LA_PRECISION :: WP $=>$ SP - single precision

USE LA_PRECISION :: WP $=>$ DP - double precision

For examples of use see Section 3.6.



Susan Blackford 2001-08-19