Package org.nd4j.linalg.factory
Interface BlasWrapper
-
- All Known Implementing Classes:
BaseBlasWrapper
public interface BlasWrapper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description doubleasum(INDArray x)Compute || x ||_1 (1-norm, sum of absolute values)INDArrayaxpy(double da, INDArray dx, INDArray dy)Deprecated.INDArrayaxpy(float da, INDArray dx, INDArray dy)Deprecated.INDArrayaxpy(Number da, INDArray dx, INDArray dy)Compute y <- y + x * alphavoidcheckInfo(String name, int info)INDArraycopy(INDArray x, INDArray y)Compute y <- x (copy a matrix)doubledot(INDArray x, INDArray y)Compute x^T * y (dot product)intgeev(char jobvl, char jobvr, INDArray A, INDArray WR, INDArray WI, INDArray VL, INDArray VR)voidgelsd(INDArray A, INDArray B)Generalized Least Squares via *GELSD.INDArraygemv(double alpha, INDArray a, INDArray x, double beta, INDArray y)Deprecated.INDArraygemv(float alpha, INDArray a, INDArray x, float beta, INDArray y)Deprecated.INDArraygemv(Number alpha, INDArray a, INDArray x, double beta, INDArray y)************************************************************************ BLAS Level 2voidgeqrf(INDArray A, INDArray tau)INDArrayger(double alpha, INDArray x, INDArray y, INDArray a)Deprecated.INDArrayger(float alpha, INDArray x, INDArray y, INDArray a)Compute A <- alpha * x * y^T + A (general rank-1 update)INDArrayger(Number alpha, INDArray x, INDArray y, INDArray a)INDArraygesv(INDArray a, int[] ipiv, INDArray b)************************************************************************ LAPACKintiamax(INDArray x)Compute index of element with largest absolute value (index of absolute value maximum)Lapacklapack()LAPack interfaceLevel1level1()Return the level 1 functions for this blas implLevel2level2()Return the level 2 functions for this blas implLevel3level3()Return the level 3 functions for this blas impldoublenrm2(INDArray x)Compute || x ||_2 (2-norm)voidormqr(char side, char trans, INDArray A, INDArray tau, INDArray C)voidposv(char uplo, INDArray A, INDArray B)voidsaxpy(double alpha, INDArray x, INDArray y)Deprecated.voidsaxpy(float alpha, INDArray x, INDArray y)Deprecated.INDArrayscal(double alpha, INDArray x)Deprecated.INDArrayscal(float alpha, INDArray x)Deprecated.INDArrayswap(INDArray x, INDArray y)Compute x <-> y (swap two matrices)intsyev(char jobz, char uplo, INDArray a, INDArray w)intsyevd(char jobz, char uplo, INDArray A, INDArray w)intsyevr(char jobz, char range, char uplo, INDArray a, double vl, double vu, int il, int iu, double abstol, INDArray w, INDArray z, int[] isuppz)Deprecated.intsyevr(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, float abstol, INDArray w, INDArray z, int[] isuppz)Deprecated.intsyevr(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, Number abstol, INDArray w, INDArray z, int[] isuppz)intsyevx(char jobz, char range, char uplo, INDArray a, double vl, double vu, int il, int iu, double abstol, INDArray w, INDArray z)intsyevx(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, float abstol, INDArray w, INDArray z)intsygvd(int itype, char jobz, char uplo, INDArray A, INDArray B, INDArray W)INDArraysysv(char uplo, INDArray a, int[] ipiv, INDArray b)
-
-
-
Method Detail
-
level1
Level1 level1()
Return the level 1 functions for this blas impl- Returns:
-
level2
Level2 level2()
Return the level 2 functions for this blas impl- Returns:
-
level3
Level3 level3()
Return the level 3 functions for this blas impl- Returns:
-
lapack
Lapack lapack()
LAPack interface- Returns:
-
scal
@Deprecated INDArray scal(double alpha, INDArray x)
Deprecated.
-
scal
@Deprecated INDArray scal(float alpha, INDArray x)
Deprecated.Compute x <- alpha * x (scale a matrix)
-
axpy
@Deprecated INDArray axpy(double da, INDArray dx, INDArray dy)
Deprecated.
-
axpy
@Deprecated INDArray axpy(float da, INDArray dx, INDArray dy)
Deprecated.Compute y <- alpha * x + y (elementwise addition)
-
axpy
INDArray axpy(Number da, INDArray dx, INDArray dy)
Compute y <- y + x * alpha- Parameters:
da- the alpha to multiply bydx-dy-- Returns:
-
nrm2
double nrm2(INDArray x)
Compute || x ||_2 (2-norm)
-
asum
double asum(INDArray x)
Compute || x ||_1 (1-norm, sum of absolute values)
-
iamax
int iamax(INDArray x)
Compute index of element with largest absolute value (index of absolute value maximum)
-
gemv
INDArray gemv(Number alpha, INDArray a, INDArray x, double beta, INDArray y)
************************************************************************ BLAS Level 2
-
gemv
@Deprecated INDArray gemv(double alpha, INDArray a, INDArray x, double beta, INDArray y)
Deprecated.
-
gemv
@Deprecated INDArray gemv(float alpha, INDArray a, INDArray x, float beta, INDArray y)
Deprecated.Compute y <- alpha*op(a)*x + beta * y (general matrix vector multiplication)
-
ger
@Deprecated INDArray ger(double alpha, INDArray x, INDArray y, INDArray a)
Deprecated.
-
ger
INDArray ger(float alpha, INDArray x, INDArray y, INDArray a)
Compute A <- alpha * x * y^T + A (general rank-1 update)
-
gesv
INDArray gesv(INDArray a, int[] ipiv, INDArray b)
************************************************************************ LAPACK
-
checkInfo
void checkInfo(String name, int info)
-
syevx
int syevx(char jobz, char range, char uplo, INDArray a, double vl, double vu, int il, int iu, double abstol, INDArray w, INDArray z)
-
syevx
int syevx(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, float abstol, INDArray w, INDArray z)
-
syevr
@Deprecated int syevr(char jobz, char range, char uplo, INDArray a, double vl, double vu, int il, int iu, double abstol, INDArray w, INDArray z, int[] isuppz)
Deprecated.
-
syevr
@Deprecated int syevr(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, float abstol, INDArray w, INDArray z, int[] isuppz)
Deprecated.
-
syevr
int syevr(char jobz, char range, char uplo, INDArray a, float vl, float vu, int il, int iu, Number abstol, INDArray w, INDArray z, int[] isuppz)
-
geev
int geev(char jobvl, char jobvr, INDArray A, INDArray WR, INDArray WI, INDArray VL, INDArray VR)
-
gelsd
void gelsd(INDArray A, INDArray B)
Generalized Least Squares via *GELSD. Note that B must be padded to contain the solution matrix. This occurs when A has fewer rows than columns. For example: in A * X = B, A is (m,n), X is (n,k) and B is (m,k). Now if m < n, since B is overwritten to contain the solution (in classical LAPACK style), B needs to be padded to be an (n,k) matrix. Likewise, if m > n, the solution consists only of the first n rows of B.- Parameters:
A- an (m,n) matrixB- an (max(m,n), k) matrix (well, at least)
-
saxpy
@Deprecated void saxpy(double alpha, INDArray x, INDArray y)
Deprecated.
-
saxpy
@Deprecated void saxpy(float alpha, INDArray x, INDArray y)
Deprecated.Abstraction over saxpy- Parameters:
alpha- the alpha to scale byx- the ndarray to usey- the ndarray to use
-
-