Constructor and Description |
---|
BaseLapack() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dgesvd(byte jobu,
byte jobvt,
int M,
int N,
INDArray A,
INDArray S,
INDArray U,
INDArray VT,
INDArray INFO) |
abstract void |
dgetrf(int M,
int N,
INDArray A,
INDArray IPIV,
INDArray INFO) |
INDArray |
getLFactor(INDArray A)
extracts the L (lower triangular) matrix from the LU factor result
L will be the same dimensions as A
|
INDArray |
getPFactor(int M,
INDArray ipiv)
This method takes one of the ipiv returns from LAPACK and creates
the permutation matrix.
|
INDArray |
getrf(INDArray A)
LU decomposiiton of a matrix
Factorize a matrix A
The matrix A is overridden by the L & U combined.
|
INDArray |
getUFactor(INDArray A)
extracts the U (upper triangular) matrix from the LU factor result
U will be n x n matrix where n = num cols in A
|
abstract void |
sgesvd(byte jobu,
byte jobvt,
int M,
int N,
INDArray A,
INDArray S,
INDArray U,
INDArray VT,
INDArray INFO) |
void |
sgesvd(INDArray A,
INDArray S,
INDArray U,
INDArray VT)
SVD decomposiiton of a matrix
Factorize a matrix into its singular vectors and eigenvalues
The decomposition is such that:
A = U x S x VT
gesvd = singular value decomposition (SVD) of a general matrix (GE)
|
abstract void |
sgetrf(int M,
int N,
INDArray A,
INDArray IPIV,
INDArray INFO)
Float version of LU decomp.
|
public INDArray getrf(INDArray A)
Lapack
public abstract void sgetrf(int M, int N, INDArray A, INDArray IPIV, INDArray INFO)
M
- the number of rows in the matrix AN
- the number of cols in the matrix AA
- the matrix to factorize - data must be in column order ( create with 'f' ordering )IPIV
- an output array for the permutations ( must be int based storage )INFO
- error details 1 int array, a positive number (i) implies row i cannot be factored, a negative value implies paramtere i is invalidpublic void sgesvd(INDArray A, INDArray S, INDArray U, INDArray VT)
Lapack
public abstract void sgesvd(byte jobu, byte jobvt, int M, int N, INDArray A, INDArray S, INDArray U, INDArray VT, INDArray INFO)
public abstract void dgesvd(byte jobu, byte jobvt, int M, int N, INDArray A, INDArray S, INDArray U, INDArray VT, INDArray INFO)
public INDArray getPFactor(int M, INDArray ipiv)
Lapack
getPFactor
in interface Lapack
M
- - the size of the permutation matrix ( usu. the # rows in factored matrix )ipiv
- - the vector returned from a refactoringpublic INDArray getLFactor(INDArray A)
Lapack
getLFactor
in interface Lapack
A
- - the combined L & U matrices returned from factorizationpublic INDArray getUFactor(INDArray A)
Lapack
getUFactor
in interface Lapack
A
- - the combined L & U matrices returned from factorizationCopyright © 2016. All Rights Reserved.