Replaceability
The external interfaces provided by KML_BLAS are the same as those provided by MKL-BLAS in terms of interface parameters and function names, and can be directly used to replace the library.
Table 1, Table 2, Table 3, Table 4 show the mapping between alternative interfaces and MKL interfaces.
MKL Interface |
KML Interface |
Description |
|---|---|---|
cblas_?asum |
cblas_?asum |
Computes the sum of absolute values of vector elements. |
cblas_?axpy |
cblas_?axpy |
Performs vector scaling and addition. |
cblas_?copy |
cblas_?copy |
Copies a vector. |
cblas_?dot |
cblas_?dot |
Computes the dot product of vectors. |
cblas_?sdot |
cblas_?sdot |
Computes the dot product with extended precision. |
cblas_?dotc |
cblas_?dotc_sub |
Computes the dot product of a conjugate vector and another vector. |
cblas_?dotu |
cblas_?dotu_sub |
Computes the dot product of complex vectors. |
cblas_?nrm2 |
cblas_?nrm2 |
Computes the Euclidean norm. |
cblas_?rot |
cblas_?rot |
Performs rotation of points in the plane. |
cblas_?rotg |
cblas_?rotg |
Constructs a rotation plane. |
cblas_?rotm |
cblas_?rotm |
Modifies a rotation plane. |
cblas_?rotmg |
cblas_?rotmg |
Constructs a modified rotation plane. |
cblas_?scal |
cblas_?scal |
Scales a vector. |
cblas_?swap |
cblas_?swap |
Swaps elements in two vectors. |
cblas_i?amin |
cblas_i?amin |
Finds the index of the element with the minimum absolute value. |
cblas_i?amax |
cblas_i?amax |
Finds the index of the element with the maximum absolute value. |
MKL Interface |
KML Interface |
Description |
|---|---|---|
cblas_?gbmv |
cblas_?gbmv |
Computes the product of a vector and a band matrix. |
cblas?_gemv |
cblas?_gemv |
Computes the product of a vector and a matrix. |
cblas_?ger |
cblas_?ger |
Performs a rank-1 update of a general matrix. |
cblas_?gerc |
cblas_?gerc |
Performs a rank-1 update of a complex general matrix. |
cblas_?geru |
cblas_?geru |
Performs a rank-1 update of a general conjugate matrix. |
cblas_?hbmv |
cblas_?hbmv |
Computes the product of a vector and a Hermitian band matrix. |
cblas_?hemv |
cblas_?hemv |
Computes the product of a vector and a Hermitian matrix. |
cblas_?her |
cblas_?her |
Performs a rank-1 update of a complex Hermitian matrix. |
cblas_?her2 |
cblas_?her2 |
Performs a rank-2 update of a complex Hermitian matrix. |
cblas_?hpmv |
cblas_?hpmv |
Computes the product of a vector and a packed Hermitian matrix. |
cblas_?hpr |
cblas_?hpr |
Performs a rank-1 update of a triangular expanded Hermitian matrix. |
cblas_?hpr2 |
cblas_?hpr2 |
Performs a rank-2 update of a triangular expanded Hermitian matrix. |
cblas_?sbmv |
cblas_?sbmv |
Computes the product of a vector and a symmetric band matrix. |
cblas_?spmv |
cblas_?spmv |
Computes the product of a vector and a packed symmetric matrix. |
cblas_?spr |
cblas_?spr |
Performs a rank-1 update of a symmetric expanded matrix. |
cblas_?spr2 |
cblas_?spr2 |
Performs a rank-2 update of a real symmetric expanded matrix. |
cblas_?symv |
cblas_?symv |
Computes the product of a vector and a symmetric matrix. |
cblas_?syr |
cblas_?syr |
Performs a rank 1 update of a symmetric matrix. |
cblas_?syr2 |
cblas_?syr2 |
Performs a rank 2 update of a symmetric matrix. |
cblas_?tbmv |
cblas_?tbmv |
Computes the product of a vector and a triangular band matrix. |
cblas_?tbsv |
cblas_?tbsv |
Solves a linear system of equations with a triangular band matrix. |
cblas_?tpmv |
cblas_?tpmv |
Computes the product of a vector and a packed triangular matrix. |
cblas_?tpsv |
cblas_?tpsv |
Solves a linear system of equations with a triangular packed matrix. |
cblas_?trmv |
cblas_?trmv |
Computes the product of a vector and a triangular matrix. |
cblas_?trsv |
cblas_?trsv |
Solves a linear system of equations with a triangular matrix |
MKL Interface |
KML Interface |
Description |
|---|---|---|
cblas_?gemm |
cblas_?gemm |
Computes the product of a general matrix and a matrix. |
cblas_?hemm |
cblas_?hemm |
Computes the product of a complex Hermitian matrix and a matrix. |
cblas_?her2k |
cblas_?her2k |
Performs a rank-2 update of the product of a complex matrix and a matrix. Matrix C is a complex Hermitian matrix. |
cblas_?herk |
cblas_?herk |
Performs a rank-k update of the product of a complex matrix and a matrix. Matrix C is a complex Hermitian matrix. |
cblas_?symm |
cblas_?symm |
Computes the product of a symmetric real matrix and a matrix. |
cblas_?syrk |
cblas_?syrk |
Performs a rank-k update of a matrix-matrix product. Matrix C is a symmetric matrix. |
cblas_?syr2k |
cblas_?syr2k |
Performs a rank-2 update of a matrix-matrix product. Matrix C is a symmetric matrix. |
cblas_?trmm |
cblas_?trmm |
Computes a matrix-matrix product where one input matrix is triangular. |
cblas_?trsm |
cblas_?trsm |
Solves a triangular matrix equation. |