HP MLIB User's Guide Vol. 2 7th Ed.
Table of Contents v i i
SASUM/DASUM/IASUM/SCASUM/DZASUM Sum of magnitudes . . . . . . . . . . . . 62
SAXPY/DAXPY/CAXPY/CAXPYC/ZAXPY/ZAXPYC Elementary vector operation 65
SAXPYI/DAXPYI/CAXPYI/ZAXPYI Sparse elementary vector operation . . . . . . . 68
SCLIP/DCLIP/ICLIP Two sided vector clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
SCLIPL/DCLIPL/ICLIPL Left sided vector clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SCLIPR/DCLIPR/ICLIPR Right sided vector clip . . . . . . . . . . . . . . . . . . . . . . . . . . 77
SCOPY/DCOPY/ICOPY/CCOPY/CCOPYC/ZCOPY/ZCOPYC Copy vector . . . . . . . 80
SDOT/DDOT/CDOTC/CDOTU/ZDOTC/ZDOTU Dot product . . . . . . . . . . . . . . . . . 84
SDOTI/DDOTI/CDOTCI/CDOTUI/ZDOTCI/ZDOTUI Sparse dot product . . . . . . . 88
SFRAC/DFRAC Extract fractional parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
SGTHR/DGTHR/IGTHR/CGTHR/ZGTHR Gather sparse vector . . . . . . . . . . . . . . 94
SGTHRZ/DGTHRZ/IGTHRZ/CGTHRZ/ZGTHRZ Gather and zero sparse vector . 96
SLSTxx/DLSTxx/ILSTxx/CLSTxx/ZLSTxx List selected vector elements . . . . . . . 99
SMAX/DMAX/IMAX Maximum of vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
SMIN/DMIN/IMIN Minimum of vector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
SNRM2/DNRM2/SCNRM2/DZNRM2 Euclidean norm . . . . . . . . . . . . . . . . . . . . . 107
SNRSQ/DNRSQ/SCNRSQ/DZNRSQ Euclidean norm squared . . . . . . . . . . . . . . . 110
SRAMP/DRAMP/IRAMP Generate linear ramp. . . . . . . . . . . . . . . . . . . . . . . . . . . 112
SROT/DROT/CROT/CSROT/ZROT/ZDROT Apply Givens rotation . . . . . . . . . . . 114
SROTG/DROTG/CROTG/ZROTG Construct Givens rotation . . . . . . . . . . . . . . . . 118
SROTI/DROTI Apply sparse Givens rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
SROTM/DROTM Apply modified Givens rotation . . . . . . . . . . . . . . . . . . . . . . . . . 123
SROTMG/DROTMG Construct modified Givens rotation . . . . . . . . . . . . . . . . . . . 127
SRSCL/DRSCL/CRSCL/CSRSCL/ZRSCL/ZDRSCL Scale vector. . . . . . . . . . . . . . 130
SSCAL/DSCAL/CSCAL/CSSCAL/CSCALC/ZSCAL/ZDSCAL/ZSCALC Scale vector . .
133
SSCTR/DSCTR/ISCTR/CSCTR/ZSCTR Scatter sparse vector. . . . . . . . . . . . . . . . 136
SSUM/DSUM/ISUM/CSUM/ZSUM Vector sum . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
SSWAP/DSWAP/ISWAP/CSWAP/ZSWAP Swap two vectors . . . . . . . . . . . . . . . . . 141
SWDOT/DWDOT/CWDOTC/CWDOTU/ZWDOTC/ZWDOTU Weighted dot product .
145
SZERO/DZERO/IZERO/CZERO/ZZERO Clear vector . . . . . . . . . . . . . . . . . . . . . . 150
F_SAMAX_VAL/F_DAMAX_VAL/F_CAMAX_VAL/F_ZAMAX_VAL Maximum
absolute value and location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
F_SAMIN_VAL/F_DAMIN_VAL/F_CAMIN_VAL/F_ZAMIN_VAL Minimum absolute
value and location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
F_SAPPLY_GROT/F_DAPPLY_GROT/F_CAPPLY_GROT/F_ZAPPLY_GROT Apply