📄 dblas.cwp.lib
字号:
DBLAS - Double precision Basic Linear Algebra subroutines (adapted from LINPACK FORTRAN):idamax return index of element with maximum absolute valuedasum return sum of absolute valuesdaxpy compute y[i] = a*x[i]+y[i]dcopy copy x[i] to y[i] (i.e., set y[i] = x[i])ddot return sum of x[i]*y[i] (i.e., return the dot product of x and y)dnrm2 return square root of sum of squares of x[i]dscal compute x[i] = a*x[i]dswap swap x[i] and y[i]Function Prototypes:int idamax (int n, double *sx, int incx);double dasum (int n, double *sx, int incx);void daxpy (int n, double sa, double *sx, int incx, double *sy, int incy);void dcopy (int n, double *sx, int incx, double *sy, int incy);double ddot (int n, double *sx, int incx, double *sy, int incy);double dnrm2 (int n, double *sx, int incx);void dscal (int n, double sa, double *sx, int incx);void dswap (int n, double *sx, int incx, double *sy, int incy);idmax:Input: n number of elements in arraysx array[n] of elementsincx increment between elements Returned:index of element with maximum absolute value (idamax)dasum:Input: n number of elements in arraysx array[n] of elementsincx increment between elements Returned:sum of absolute values (dasum)daxpy:Input: n number of elements in arrayssa the scalar multipliersx array[n] of elements to be scaled and addedincx increment between elements of sxsy array[n] of elements to be addedincy increment between elements of syOutput:sy array[n] of accumulated elementsdcopy:Input: n number of elements in arrayssx array[n] of elements to be copiedincx increment between elements of sxincy increment between elements of syOutput:sy array[n] of copied elementsddot:Input:n number of elements in arrayssx array[n] of elementsincx increment between elements of sxsy array[n] of elementsincy increment between elements of syReturned: dot product of the two arraysdnrm2:Input:n number of elements in arraysx array[n] of elementsincx increment between elements Returned: square root of sum of squares of x[i]dscal:Input:n number of elements in arraysa the scalar multipliersx array[n] of elementsincx increment between elements Output:sx array[n] of scaled elementsAuthor: Dave Hale, Colorado School of Mines, 10/01/89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -