类定义:class numbapro.cudalib.cublas.Blas(*args, **kws)
使用:
level 1 (参数均为1维向量)
amax(x)
功能:返回一维数组中最大值的索引
使用方法:
注意事项:数组中的数据不可以是整型,不然会报错。
amin(x):
同amax(x)
asum(x):
同amax(x)
axpy(alpha, x, y)
功能:y = alpha*x + y
使用方法:
nrm2(x)
功能:求向量x的2-范数
p-范数:若 ,那么