library.blas
Submodule¶
Module Summary¶
Interfaces for the NAG Mark 30.2 blas Chapter.
blas
- Linear Algebra Support Routines
This module is concerned with basic linear algebra functions which perform elementary algebraic operations involving scalars, vectors and matrices. It includes functions which conform to the specifications of the BLAS (Basic Linear Algebra Subprograms).
Functionality Index¶
Level 0 (Scalar) operations
complex numbers
apply similarity rotation to Hermitian matrix:
zrot2()
generate a plane rotation, storing the tangent, real cosine:
zrotgc()
generate a plane rotation, storing the tangent, real sine:
zrotgs()
quotient of two numbers, with overflow flag:
zdiv()
recover cosine and sine from given tangent, real cosine:
zcsg()
recover cosine and sine from given tangent, real sine:
zcsgs()
real numbers
apply similarity rotation to symmetric matrix:
drot2()
compute :
dpyth()
compute Euclidean norm from scaled form:
dnorm()
eigenvalue of symmetric matrix:
deig2()
generate a Jacobi plane rotation:
drotj()
generate a plane rotation:
drotg()
generate a plane rotation storing the tangent:
drotgc()
quotient of two numbers, with overflow flag:
ddiv()
recover cosine and sine from given tangent:
dcsg()
Level 1 (Vector) operations
complex vector(s)
add scalar times a vector to another vector:
zaxpy()
apply a complex plane rotation:
zcrot()
apply an elementary reflection to a vector:
zhous()
apply a real plane rotation:
zdrot()
apply plane rotation
real cosine, complex sine:
zrot()
broadcast a scalar into a vector:
zload()
copy a real vector to a complex vector:
zdcopy()
copy a vector:
zcopy()
dot product of two vectors, conjugated:
zdotc()
dot product of two vectors, unconjugated:
zdotu()
Euclidean norm of a vector:
dznrm2()
generate an elementary reflection:
zhousg()
generate a sequence of plane rotations:
zsrotg()
index of element of largest absolute value:
izamax()
multiply vector by a complex scalar:
zscal()
multiply vector by a complex scalar, preserving input vector:
zaxpzy()
multiply vector by a real scalar:
zdscal()
multiply vector by a real scalar, preserving input vector:
zdaxpzy()
multiply vector by complex diagonal matrix:
zdscl()
multiply vector by real diagonal matrix:
zddscl()
multiply vector by reciprocal of a real scalar:
zdrscl()
negate a vector:
znegv()
sum of absolute values of vector-elements:
dzasum()
swap two vectors:
zswap()
update Euclidean norm in scaled form:
dzssq()
integer vector(s)
real vector(s)
add scalar times a vector to another vector:
daxpy()
apply an elementary reflection to a vector (Linpack style):
dlhous()
apply an elementary reflection to a vector (NAG style):
dnhous()
apply a symmetric plane rotation to two vectors:
drots()
apply plane rotation:
drot()
broadcast a scalar into a vector:
dload()
copy a vector:
dcopy()
cosine of angle between two vectors:
dvcos()
dot product of two vectors:
ddot()
elements of largest and smallest absolute value:
darang()
Euclidean norm of a vector:
dnrm2()
generate an elementary reflection (Linpack style):
dlhousg()
generate an elementary reflection (NAG style):
dnhousg()
generate a sequence of plane rotations:
dsrotg()
index of element of largest absolute value:
idamax()
index of last non-negligible element:
idrank()
multiply vector by a scalar:
dscal()
multiply vector by a scalar, preserving input vector:
axpzy()
multiply vector by diagonal matrix:
ddscl()
multiply vector by reciprocal of a scalar:
drscl()
negate a vector:
dnegv()
sum of absolute values of vector-elements:
dasum()
swap two vectors:
dswap()
update Euclidean norm in scaled form:
dssq()
weighted Euclidean norm of a vector:
dnrm2w()
Level 2 (Matrix-vector and matrix) operations
complex matrix and vector(s)
apply sequence of plane rotations to a rectangular matrix
compute a norm or the element of largest absolute value
band matrix:
zlangb()
general matrix:
zlange()
Hermitian band matrix:
zlanhb()
Hermitian matrix:
zlanhe()
Hermitian matrix, packed form:
zlanhp()
Hermitian matrix, RFP format:
zlanhf()
Hermitian tridiagonal matrix:
zlanht()
Hessenberg matrix:
zlanhs()
symmetric band matrix:
zlansb()
symmetric matrix:
zlansy()
symmetric matrix, packed form:
zlansp()
trapezoidal matrix:
zlantr()
triangular band matrix:
zlantb()
triangular matrix, packed form:
zlantp()
tridiagonal matrix:
zlangt()
compute upper Hessenberg matrix by applying sequence of plane rotations to an upper triangular matrix:
zutsrh()
compute upper spiked matrix by applying sequence of plane rotations to an upper triangular matrix:
zutsrs()
matrix initialization:
zmload()
matrix-vector product
Hermitian band matrix:
zhbmv()
Hermitian matrix:
zhemv()
Hermitian packed matrix:
zhpmv()
rectangular band matrix:
zgbmv()
rectangular matrix:
zgemv()
symmetric matrix:
zsymv()
symmetric packed matrix:
zspmv()
triangular band matrix:
ztbmv()
triangular matrix:
ztrmv()
triangular packed matrix:
ztpmv()
permute rows or columns of a matrix
factorization by sequence of plane rotations
factorization of or factorization of , where is upper triangular and is a sequence of plane rotations:
zutsqr()
or factorization by sequence of plane rotations
rank-1 update
rank-2 update
solution of a system of equations
unitary similarity transformation of a Hermitian matrix
as sequence of plane rotations:
zhesrc()
real matrix and vector(s)
apply sequence of plane rotations to a rectangular matrix:
dgesrc()
compute a norm or the element of largest absolute value
band matrix:
dlangb()
general matrix:
dlange()
Hessenberg matrix:
dlanhs()
matrix initialization:
dmload()
symmetric band matrix:
dlansb()
symmetric matrix:
dlansy()
symmetric matrix, packed form:
dlansp()
symmetric matrix, RFP format:
dlansf()
symmetric tridiagonal matrix:
dlanst()
trapezoidal matrix:
dlantr()
triangular band matrix:
dlantb()
triangular matrix, packed form:
dlantp()
tridiagonal matrix:
dlangt()
compute upper Hessenberg matrix by applying sequence of plane rotations to an upper triangular matrix:
dutsrh()
compute upper spiked matrix by applying sequence of plane rotations to an upper triangular matrix:
dutsrs()
matrix-vector product
orthogonal similarity transformation of a symmetric matrix
as sequence of plane rotations:
dsysrc()
permute rows or columns of a matrix
factorization by sequence of plane rotations
factorization of or factorization of , where is upper triangular and is a sequence of plane rotations:
dutsqr()
or factorization by sequence of plane rotations
rank-1 update
rank-2 update
solution of a system of equations
Level 3 (Matrix-matrix) operations
complex matrices
real matrices
Sparse level 1 (vector) operations
complex vector(s)
real vector(s)
For full information please refer to the NAG Library document
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f06/f06intro.html