HP-UX Floating-Point Guide

Chapter 4 121
HP-UX Math Libraries on HP 9000 Systems
Contents of the HP-UX Math Libraries
scalbn(x, n) Returns x*(2**n), where n is an
integer
trunc(x) Returns the integral value, in
floating-point format, nearest to but
no larger in magnitude than the
argument
The BLAS Library (libblas)
The Basic Linear Algebra Subroutine (BLAS) library routines perform
low-level vector and matrix operations. They have been tuned for
maximum performance.
The BLAS library is provided with the HP Fortran 90 and HP
FORTRAN/9000 products only, but the routines in this library are
callable from other languages than Fortran.
To call BLAS library routines, use the -l compile-line option to link in
the libblas library. For example, the following command line links a
Fortran program with the BLAS library:
f90 prog.f -lblas
To link with the library from C, you must also specify the library path
name on the command line.
For more information about the BLAS library routines, see “BLAS
Library Versions” on page 180, “Matrix Operations” on page 185 and the
HP Fortran 90 Programmer’s Reference or the HP FORTRAN/9000
Programmer’s Reference. In addition, online man pages for these routines
are available.
NOTE To obtain the man pages for the BLAS library, you must have
/opt/fortran90/share/man in your MANPATH (or
/opt/fortran/share/man). Type man blas for an overview.
The Vector Library (libvec) (Obsolete)
The vector library (provided with the HP FORTRAN/9000 product
only) performs vector and matrix operations.