The level 1 functions implement vector operations.
scal(alpha, x)
Scales a vector by a constant:
If x is a real matrix, the scalar argument alpha must be a Python integer or float. If x is complex, alpha can be an integer, float, or complex.
nrm2(x)
Euclidean norm of a vector: returns
asum(x)
1-Norm of a vector: returns
iamax(x)
Returns
If more than one coefficient achieves the maximum, the index of the first k is returned.
swap(x, y)
Interchanges two vectors:
x and y are matrices of the same type (’d’ or ’z’).
copy(x, y)
Copies a vector to another vector:
x and y are matrices of the same type (’d’ or ’z’).
axpy(x, y[,alpha=1.0])
Constant times a vector plus a vector:
x and y are matrices of the same type (’d’ or ’z’). If x is real, the scalar argument alpha must be a Python integer or float. If x is complex, alpha can be an integer, float, or complex.
dot(x, y)
Returns
x and y are matrices of the same type (’d’ or ’z’).
dotu(x, y)
Returns
x and y are matrices of the same type (’d’ or ’z’).