函数语法:
XASUM( N, X, INCX)
功能:
ASUM 是 BLAS 中 第1层函数。ASUM函数计算一个向量中所有元素绝对值的累加和( Calculating summary of element absolute value of a vector).
参数:
输入值:
int N, the number of entries in the vector.
X[*], the vector to be examined.
int incX, the increment between successive entries of X.
incX must not be negative.
返回值:
the sum of the absolute values of X.
Fortran语言版DASUM
源代码:

本文详细介绍了BLAS库中的ASUM函数,包括其在Fortran和C语言中的实现,以及如何计算向量元素绝对值的累加和。提供了源代码示例及测试结果。
最低0.47元/天 解锁文章
6230

被折叠的 条评论
为什么被折叠?



