public class LinearAlgebraOps extends Object
Modifier and Type | Method and Description |
---|---|
static void |
eigs(double[] srcV,
double[] vecV,
double[] valV,
int size)
An eigenvector and eigenvalue operation in support of
JavaArrayKernel.eigs(double[], double[], double[], int) . |
protected static void |
hessenberg(double[] h,
double[] vecV,
int size)
Computes the reduction to Hessenberg form.
|
protected static void |
hessenbergToSchur(double[] h,
double[] vecV,
double[] valV,
int size)
Computes the reduction from Hessenberg form to real Schur form.
|
static void |
invert(double[] srcV,
double[] dstV,
int size)
A matrix inversion operation in support of
JavaArrayKernel.invert(double[], double[], int) . |
protected static void |
lup(double[] lu,
int[] pivots,
int nRows,
int nCols)
Computes the LU decomposition along with row pivots.
|
protected static void |
luSolve(double[] lu,
int nLuCols,
double[] dstV,
int nDstVCols)
Uses an existing LU decomposition to solve a system of linear equations.
|
static void |
svd(double[] srcV,
int srcStrideRow,
int srcStrideCol,
double[] uV,
double[] sV,
double[] vV,
int nRows,
int nCols)
A singular value decomposition operation in support of
JavaArrayKernel.svd(double[], int, int, double[], double[], double[], int, int) . |
public static final void svd(double[] srcV, int srcStrideRow, int srcStrideCol, double[] uV, double[] sV, double[] vV, int nRows, int nCols)
JavaArrayKernel.svd(double[], int, int, double[], double[], double[], int, int)
.public static final void eigs(double[] srcV, double[] vecV, double[] valV, int size)
JavaArrayKernel.eigs(double[], double[], double[], int)
.protected static final void hessenberg(double[] h, double[] vecV, int size)
h
- the working Hessenberg matrix.vecV
- the eigenvectors.size
- the matrix size.protected static final void hessenbergToSchur(double[] h, double[] vecV, double[] valV, int size)
h
- the working Hessenberg matrix.vecV
- the eigenvectors.valV
- the eigenvalues.size
- the matrix size.public static final void invert(double[] srcV, double[] dstV, int size)
JavaArrayKernel.invert(double[], double[], int)
.protected static final void lup(double[] lu, int[] pivots, int nRows, int nCols)
lu
- the LU matrix.pivots
- the row pivots.nRows
- the number of rows.nCols
- the number of columns.protected static final void luSolve(double[] lu, int nLuCols, double[] dstV, int nDstVCols)
lu
- the LU matrix.nLuCols
- the number of columns in the LU matrix.dstV
- the destination matrix.nDstVCols
- the number of columns in the destination matrix.