HP MLIB User's Guide Vol. 2 7th Ed.

viii Table of Contents
plane rotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
F_SAXPBY/F_DAXPBY/F_CAXPBY/F_ZAXPBY Scaled vector accumulation . . . 161
F_SAXPY_DOT/F_DAXPY_DOT/F_CAXPY_DOT/F_ZAXPY_DOT Combine AXPY
and DOT routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
F_SCOPY/F_DCOPY/F_CCOPY/F_ZCOPY Copy vector. . . . . . . . . . . . . . . . . . . . . 167
F_SDOT/F_DDOT/F_CDOT/F_ZDOT Add scaled dot product . . . . . . . . . . . . . . . . 169
F_SFPINFO/F_DFPINFO Environmental inquiry . . . . . . . . . . . . . . . . . . . . . . . . . 172
F_SGEN_GROT/F_DGEN_GROT/F_CGEN_GROT/F_ZGEN_GROT Generate
Givens rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
F_SGEN_HOUSE/F_DGEN_HOUSE/F_CGEN_HOUSE/F_ZGEN_HOUSE Generate
Householder transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
F_SGEN_JROT/F_DGEN_JROT/F_CGEN_JROT/F_ZGEN_JROT Generate Jacobi
rotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
F_SMAX_VAL/F_DMAX_VAL Maximum value and location. . . . . . . . . . . . . . . . . 181
F_SMIN_VAL/F_DMIN_VAL Minimum value and location. . . . . . . . . . . . . . . . . . 183
F_SNORM/F_DNORM Norm of a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
F_SPERMUTE/F_DPERMUTE/F_CPERMUTE/F_ZPERMUTE Permute vector 187
F_SRSCALE/F_DRSCALE/F_CRSCALE/F_ZRSCALE Reciprocal Scale . . . . . . . 190
F_SSORT/F_DSORT Sort vector entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
F_SSORTV/F_DSORTV Sort vector and return index vector. . . . . . . . . . . . . . . . . 193
F_SSUM/F_DSUM/F_CSUM/F_ZSUM Sum of entries of a vector. . . . . . . . . . . . . 195
F_SSUMSQ/F_DSUMSQ/F_CSUMSQ/F_ZSUMSQ Sum of squares . . . . . . . . . . . 197
F_SSWAP/F_DSWAP/F_CSWAP/F_ZSWAP Interchange vectors . . . . . . . . . . . . . 200
F_SWAXPBY/F_DWAXPBY/F_CWAXPBY/F_ZWAXPBY Scaled vector addition. 202
3 Basic Matrix Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Chapter objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Associated documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
What you need to know to use these subprograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Subroutine naming convention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
Operator arguments in the BLAS Standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Subprograms for basic matrix operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
SGBMV/DGBMV/CGBMV/ZGBMV Matrix-vector multiply. . . . . . . . . . . . . . . . . . 212
SGECPY/DGECPY/CGECPY/ZGECPY Copy general matrix . . . . . . . . . . . . . . . . 219
SGEMM/DGEMM/CGEMM/ZGEMM Matrix-matrix multiply . . . . . . . . . . . . . . . 222