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_PRECISIONIn 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:
INTEGER, PARAMETER :: SP=KIND(1.0), DP=KIND(1.0D0)
END MODULE LA_PRECISION
USE LA_PRECISION :: WP SP - single precision
USE LA_PRECISION :: WP DP - double precision
For examples of use see Section 3.6.