Uses of Class
org.la4j.Matrix
-
-
Uses of Matrix in org.la4j
Fields in org.la4j with type parameters of type Matrix Modifier and Type Field Description static MatrixMatrixOperation<Matrix>
LinearAlgebra. IN_PLACE_COPY_MATRIX_TO_MATRIX
static MatrixMatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_KRONECKER_PRODUCT
static MatrixMatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_MATRICES_MULTIPLICATION
static MatrixMatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_MATRICES_SUBTRACTION
static MatrixMatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_MATRIX_ADDITION
static MatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_MATRIX_BY_ITS_TRANSPOSE_MULTIPLICATION
static MatrixMatrixOperation<Matrix>
LinearAlgebra. OO_PLACE_MATRIX_HADAMARD_PRODUCT
static VectorVectorOperation<Matrix>
LinearAlgebra. OO_PLACE_OUTER_PRODUCT
Methods in org.la4j with type parameters of type Matrix Modifier and Type Method Description <T extends Matrix>
TMatrix. to(MatrixFactory<T> factory)
Converts this matrix using the givenfactory
.Methods in org.la4j that return Matrix Modifier and Type Method Description Matrix
Matrix. add(double value)
Adds givenvalue
(v) to every element of this matrix (A).Matrix
Matrix. add(Matrix that)
Adds giventhat
matrix (B) to this matrix (A).Matrix
Matrix. blank()
Creates the blank matrix (a zero matrix with same size) of this matrix.Matrix
Matrix. blankOfColumns(int columns)
Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:columns
.Matrix
Matrix. blankOfRows(int rows)
Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:rows
.abstract Matrix
Matrix. blankOfShape(int rows, int columns)
Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:rows
xcolumns
.static Matrix
Matrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static Matrix
Matrix. constant(int rows, int columns, double constant)
Creates a constantMatrix
of the given shape andvalue
.Matrix
Matrix. copy()
Copies this matrix.Matrix
Matrix. copyOfColumns(int columns)
Copies this matrix into the new matrix with specified column dimension:columns
.Matrix
Matrix. copyOfRows(int rows)
Copies this matrix into the new matrix with specified row dimension:rows
.abstract Matrix
Matrix. copyOfShape(int rows, int columns)
Copies this matrix into the new matrix with specified dimensions:rows
andcolumns
.static Matrix
Matrix. diagonal(int size, double diagonal)
Matrix
Matrix. divide(double value)
Divides every element of this matrix (A) by givenvalue
(v).static Matrix
Matrix. from1DArray(int rows, int columns, double[] array)
Creates aMatrix
of the given 1Darray
w/o copying the underlying array.static Matrix
Matrix. from2DArray(double[][] array)
Creates aMatrix
of the given 2Darray
w/o copying the underlying array.static Matrix
Matrix. fromCSV(java.lang.String csv)
ParsesMatrix
from the given CSV string.static Matrix
Matrix. fromMatrixMarket(java.lang.String mm)
ParsesMatrix
from the given Matrix Market string.Matrix
Matrix. hadamardProduct(Matrix that)
Calculates the Hadamard (element-wise) product of this and giventhat
matrix.static Matrix
Matrix. identity(int size)
Creates an identityMatrix
of the givensize
.Matrix
Matrix. insert(Matrix that)
Inserts a giventhat
(B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int destRow, int destColumn, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. insertColumn(int j, Vector column)
Adds one column to matrix.Matrix
Matrix. insertRow(int i, Vector row)
Adds one row to matrix.Matrix
Matrix. kroneckerProduct(Matrix that)
Calculates the Kronecker product of this matrix (A) and giventhat
matrix (B).Matrix
Matrix. multiply(double value)
Scales this matrix by givenvalue
(v).Matrix
Matrix. multiply(Matrix that)
Multiplies this matrix (A) by giventhat
matrix (B).Matrix
Matrix. multiplyByItsTranspose()
Multiplies this matrix by its transpose.Matrix
Vector. outerProduct(Vector that)
Calculates the outer product of this vector and giventhat
.Matrix
Matrix. power(int n)
Powers this matrix of given exponent {code n}.static Matrix
Matrix. random(int rows, int columns, java.util.Random random)
static Matrix
Matrix. randomSymmetric(int size, java.util.Random random)
Creates a random symmetricMatrix
of the givensize
.Matrix
Matrix. removeColumn(int j)
Removes one column from matrix.Matrix
Matrix. removeFirstColumn()
Removes first column from matrix.Matrix
Matrix. removeFirstRow()
Removes first row from matrix.Matrix
Matrix. removeLastColumn()
Removes last column from matrix.Matrix
Matrix. removeLastRow()
Removes last row from matrix.Matrix
Matrix. removeRow(int i)
Removes one row from matrix.Matrix
Matrix. rotate()
Rotates this matrix by 90 degrees to the right.Matrix
Matrix. select(int[] rowIndices, int[] columnIndices)
Returns a new matrix with the selected rows and columns.Matrix
Matrix. shuffle()
Shuffles this matrix.Matrix
Matrix. slice(int fromRow, int fromColumn, int untilRow, int untilColumn)
Retrieves the specified sub-matrix of this matrix.Matrix
Matrix. sliceBottomRight(int fromRow, int fromColumn)
Retrieves the specified sub-matrix of this matrix.Matrix
Matrix. sliceTopLeft(int untilRow, int untilColumn)
Retrieves the specified sub-matrix of this matrix.Matrix
Matrix. subtract(double value)
Subtracts givenvalue
(v) from every element of this matrix (A).Matrix
Matrix. subtract(Matrix that)
Subtracts giventhat
matrix (B) from this matrix (A).abstract Matrix
Vector. toColumnMatrix()
Converts this vector to matrix with only one column.abstract Matrix
Vector. toDiagonalMatrix()
Converts this vector to a diagonal matrix.abstract Matrix
Vector. toRowMatrix()
Converts this vector to matrix with only one row.Matrix
Matrix. transform(MatrixFunction function)
Builds a new matrix by applying givenfunction
to each element of this matrix.Matrix
Matrix. transformColumn(int j, VectorFunction function)
Builds a new matrix by applying givenfunction
to each element of specified column in this matrix.Matrix
Matrix. transformRow(int i, VectorFunction function)
Builds a new matrix by applying givenfunction
to each element of specified row in this matrix.Matrix
Matrix. transpose()
Transposes this matrix.static Matrix
Matrix. unit(int rows, int columns)
static Matrix
Matrix. zero(int rows, int columns)
Methods in org.la4j with parameters of type Matrix Modifier and Type Method Description Matrix
Matrix. add(Matrix that)
Adds giventhat
matrix (B) to this matrix (A).abstract <T> T
Matrix. apply(MatrixMatrixOperation<T> operation, Matrix that)
Pipes this matrix to a givenoperation
.abstract <T> T
Vector. apply(VectorMatrixOperation<T> operation, Matrix that)
Pipes this vector to a givenoperation
.static Matrix
Matrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
abstract MatrixDecompositor
LinearAlgebra.DecompositorFactory. create(Matrix matrix)
abstract MatrixInverter
LinearAlgebra.InverterFactory. create(Matrix matrix)
abstract LinearSystemSolver
LinearAlgebra.SolverFactory. create(Matrix matrix)
boolean
Matrix. equals(Matrix matrix, double precision)
Returns true when matrix is equal to givenmatrix
with givenprecision
Matrix
Matrix. hadamardProduct(Matrix that)
Calculates the Hadamard (element-wise) product of this and giventhat
matrix.Matrix
Matrix. insert(Matrix that)
Inserts a giventhat
(B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int destRow, int destColumn, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns)
Inserts a giventhat
matrix (B) into this matrix (A).Matrix
Matrix. kroneckerProduct(Matrix that)
Calculates the Kronecker product of this matrix (A) and giventhat
matrix (B).Matrix
Matrix. multiply(Matrix that)
Multiplies this matrix (A) by giventhat
matrix (B).Vector
Vector. multiply(Matrix that)
Multiples this vector (X) by giventhat
(A).Matrix
Matrix. subtract(Matrix that)
Subtracts giventhat
matrix (B) from this matrix (A).boolean
Matrices.DiagonallyDominantPredicate. test(Matrix matrix)
boolean
Matrices.PositiveDefiniteMatrixPredicate. test(Matrix matrix)
boolean
Matrices.SymmetricMatrixPredicate. test(Matrix matrix)
-
Uses of Matrix in org.la4j.decomposition
Fields in org.la4j.decomposition declared as Matrix Modifier and Type Field Description protected Matrix
AbstractDecompositor. matrix
Methods in org.la4j.decomposition that return Matrix Modifier and Type Method Description Matrix[]
CholeskyDecompositor. decompose()
Returns the result of Cholesky decomposition of given matrixMatrix[]
EigenDecompositor. decompose()
Returns the result of Eigen (EVD) decomposition of given matrixMatrix[]
LUDecompositor. decompose()
Returns the result of LU decomposition of given matrixMatrix[]
MatrixDecompositor. decompose()
Decomposes the wrapped matrix.Matrix[]
QRDecompositor. decompose()
Returns the result of QR decomposition of given matrixMatrix[]
RawLUDecompositor. decompose()
Matrix[]
RawQRDecompositor. decompose()
Matrix[]
SingularValueDecompositor. decompose()
Returns the result of Singular Value decomposition of given matrixprivate Matrix[]
EigenDecompositor. decomposeNonSymmetricMatrix(Matrix matrix)
Returns the result of Eigen decomposition for non-symmetric matrixprivate Matrix[]
EigenDecompositor. decomposeSymmetricMatrix(Matrix matrix)
Returns the result of Eigen decomposition for symmetric matrixMatrix
AbstractDecompositor. self()
Matrix
MatrixDecompositor. self()
Returns the self matrix of this decompositor.Methods in org.la4j.decomposition with parameters of type Matrix Modifier and Type Method Description boolean
CholeskyDecompositor. applicableTo(Matrix matrix)
boolean
EigenDecompositor. applicableTo(Matrix matrix)
boolean
MatrixDecompositor. applicableTo(Matrix matrix)
Checks whether this decompositor is applicable to given matrix or not.boolean
RawLUDecompositor. applicableTo(Matrix matrix)
boolean
RawQRDecompositor. applicableTo(Matrix matrix)
boolean
SingularValueDecompositor. applicableTo(Matrix matrix)
private Matrix[]
EigenDecompositor. decomposeNonSymmetricMatrix(Matrix matrix)
Returns the result of Eigen decomposition for non-symmetric matrixprivate Matrix[]
EigenDecompositor. decomposeSymmetricMatrix(Matrix matrix)
Returns the result of Eigen decomposition for symmetric matrixprivate int
EigenDecompositor. findMax(Matrix matrix, int i)
private Vector
EigenDecompositor. generateR(Matrix matrix)
private double
EigenDecompositor. generateRi(Matrix matrix, int i)
private void
EigenDecompositor. hqr2(Matrix H, Matrix V, Vector d, Vector e)
private void
EigenDecompositor. orthes(Matrix h, Matrix v, Vector ort)
private void
EigenDecompositor. regenerateU(Matrix u, Matrix matrix, int k, int l, int kk, int ll)
Constructors in org.la4j.decomposition with parameters of type Matrix Constructor Description AbstractDecompositor(Matrix matrix)
CholeskyDecompositor(Matrix matrix)
EigenDecompositor(Matrix matrix)
LUDecompositor(Matrix matrix)
QRDecompositor(Matrix matrix)
RawLUDecompositor(Matrix matrix)
RawQRDecompositor(Matrix matrix)
SingularValueDecompositor(Matrix matrix)
-
Uses of Matrix in org.la4j.inversion
Fields in org.la4j.inversion declared as Matrix Modifier and Type Field Description private Matrix
GaussJordanInverter. matrix
private Matrix
NoPivotGaussInverter. matrix
Methods in org.la4j.inversion that return Matrix Modifier and Type Method Description Matrix
GaussJordanInverter. inverse()
Matrix
MatrixInverter. inverse()
Inverse matrix.Matrix
NoPivotGaussInverter. inverse()
Matrix
GaussJordanInverter. self()
Matrix
MatrixInverter. self()
Returns the self matrix of this inverter.Matrix
NoPivotGaussInverter. self()
Constructors in org.la4j.inversion with parameters of type Matrix Constructor Description GaussJordanInverter(Matrix matrix)
NoPivotGaussInverter(Matrix matrix)
-
Uses of Matrix in org.la4j.linear
Fields in org.la4j.linear declared as Matrix Modifier and Type Field Description protected Matrix
AbstractSolver. a
private Matrix
GaussianSolver. aa
private Matrix
JacobiSolver. aa
private Matrix
SeidelSolver. aa
private Matrix
ForwardBackSubstitutionSolver. lu
private Matrix
ForwardBackSubstitutionSolver. p
private Matrix
LeastSquaresSolver. qr
private Matrix
LeastSquaresSolver. r
Methods in org.la4j.linear that return Matrix Modifier and Type Method Description Matrix
AbstractSolver. self()
Matrix
LinearSystemSolver. self()
Returns the self matrix of the solver.Methods in org.la4j.linear with parameters of type Matrix Modifier and Type Method Description boolean
ForwardBackSubstitutionSolver. applicableTo(Matrix matrix)
boolean
GaussianSolver. applicableTo(Matrix matrix)
boolean
JacobiSolver. applicableTo(Matrix matrix)
boolean
LeastNormSolver. applicableTo(Matrix matrix)
boolean
LeastSquaresSolver. applicableTo(Matrix matrix)
boolean
LinearSystemSolver. applicableTo(Matrix matrix)
Checks whether this solver applicable to givenmatrix
or not.boolean
SeidelSolver. applicableTo(Matrix matrix)
boolean
SquareRootSolver. applicableTo(Matrix matrix)
boolean
SweepSolver. applicableTo(Matrix matrix)
private void
GaussianSolver. backSubstitution(Matrix matrix, Vector result)
private void
GaussianSolver. triangularizeWithPivoting(Matrix matrix)
Constructors in org.la4j.linear with parameters of type Matrix Constructor Description AbstractSolver(Matrix a)
ForwardBackSubstitutionSolver(Matrix a)
GaussianSolver(Matrix a)
JacobiSolver(Matrix a)
LeastNormSolver(Matrix a)
LeastSquaresSolver(Matrix a)
SeidelSolver(Matrix a)
SquareRootSolver(Matrix a)
SweepSolver(Matrix a)
-
Uses of Matrix in org.la4j.matrix
Classes in org.la4j.matrix with type parameters of type Matrix Modifier and Type Class Description class
MatrixFactory<T extends Matrix>
An abstract matrix factory.Subclasses of Matrix in org.la4j.matrix Modifier and Type Class Description class
ColumnMajorSparseMatrix
class
DenseMatrix
class
RowMajorSparseMatrix
class
SparseMatrix
Methods in org.la4j.matrix that return Matrix Modifier and Type Method Description Matrix
SparseMatrix. add(double value)
Matrix
SparseMatrix. multiply(double value)
Matrix
ColumnMajorSparseMatrix. rotate()
Matrix
RowMajorSparseMatrix. rotate()
Matrix
ColumnMajorSparseMatrix. transpose()
Matrix
RowMajorSparseMatrix. transpose()
Methods in org.la4j.matrix with parameters of type Matrix Modifier and Type Method Description <T> T
ColumnMajorSparseMatrix. apply(MatrixMatrixOperation<T> operation, Matrix that)
<T> T
DenseMatrix. apply(MatrixMatrixOperation<T> operation, Matrix that)
<T> T
RowMajorSparseMatrix. apply(MatrixMatrixOperation<T> operation, Matrix that)
static ColumnMajorSparseMatrix
ColumnMajorSparseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static DenseMatrix
DenseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static RowMajorSparseMatrix
RowMajorSparseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static SparseMatrix
SparseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
-
Uses of Matrix in org.la4j.matrix.dense
Subclasses of Matrix in org.la4j.matrix.dense Modifier and Type Class Description class
Basic1DMatrix
class
Basic2DMatrix
Methods in org.la4j.matrix.dense with type parameters of type Matrix Modifier and Type Method Description <T extends Matrix>
TBasic1DMatrix. to(MatrixFactory<T> factory)
<T extends Matrix>
TBasic2DMatrix. to(MatrixFactory<T> factory)
Methods in org.la4j.matrix.dense that return Matrix Modifier and Type Method Description Matrix
Basic1DMatrix. blankOfShape(int rows, int columns)
Matrix
Basic2DMatrix. blankOfShape(int rows, int columns)
Matrix
Basic1DMatrix. copyOfShape(int rows, int columns)
Matrix
Basic2DMatrix. copyOfShape(int rows, int columns)
Methods in org.la4j.matrix.dense with parameters of type Matrix Modifier and Type Method Description static Basic1DMatrix
Basic1DMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static Basic2DMatrix
Basic2DMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
-
Uses of Matrix in org.la4j.matrix.functor
Methods in org.la4j.matrix.functor with parameters of type Matrix Modifier and Type Method Description boolean
AdvancedMatrixPredicate. test(Matrix matrix)
Tests givenmatrix
. -
Uses of Matrix in org.la4j.matrix.sparse
Subclasses of Matrix in org.la4j.matrix.sparse Modifier and Type Class Description class
CCSMatrix
This is a CCS (Compressed Column Storage) matrix class.class
CRSMatrix
This is a CRS (Compressed Row Storage) matrix class.Methods in org.la4j.matrix.sparse with type parameters of type Matrix Modifier and Type Method Description <T extends Matrix>
TCCSMatrix. to(MatrixFactory<T> factory)
<T extends Matrix>
TCRSMatrix. to(MatrixFactory<T> factory)
Methods in org.la4j.matrix.sparse that return Matrix Modifier and Type Method Description Matrix
CCSMatrix. blankOfShape(int rows, int columns)
Matrix
CRSMatrix. blankOfShape(int rows, int columns)
Matrix
CCSMatrix. copyOfShape(int rows, int columns)
Matrix
CRSMatrix. copyOfShape(int rows, int columns)
Matrix
CCSMatrix. select(int[] rowIndices, int[] columnIndices)
Returns a CCSMatrix with the selected rows and columns.Matrix
CRSMatrix. select(int[] rowIndices, int[] columnIndices)
Returns a CRSMatrix with the selected rows and columns.Methods in org.la4j.matrix.sparse with parameters of type Matrix Modifier and Type Method Description static CCSMatrix
CCSMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
static CRSMatrix
CRSMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)
-
Uses of Matrix in org.la4j.operation
Methods in org.la4j.operation with parameters of type Matrix Modifier and Type Method Description abstract R
CommonMatrixMatrixOperation. applyCommon(Matrix a, Matrix b)
abstract R
CommonMatrixOperation. applyCommon(Matrix a)
void
MatrixMatrixOperation. ensureApplicableTo(Matrix a, Matrix b)
void
MatrixOperation. ensureApplicableTo(Matrix a)
void
MatrixVectorOperation. ensureApplicableTo(Matrix a, Vector b)
void
VectorMatrixOperation. ensureApplicableTo(Vector a, Matrix b)
-
Uses of Matrix in org.la4j.operation.inplace
Methods in org.la4j.operation.inplace that return Matrix Modifier and Type Method Description Matrix
InPlaceCopyMatrixToMatrix. apply(ColumnMajorSparseMatrix a, RowMajorSparseMatrix b)
Matrix
InPlaceCopyMatrixToMatrix. apply(DenseMatrix a, DenseMatrix b)
Matrix
InPlaceCopyMatrixToMatrix. apply(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b)
Matrix
InPlaceCopyMatrixToMatrix. applySimple(DenseMatrix a, SparseMatrix b)
Matrix
InPlaceCopyMatrixToMatrix. applySimple(SparseMatrix a, DenseMatrix b)
Matrix
InPlaceCopyMatrixToMatrix. applySimple(SparseMatrix a, SparseMatrix b)
private Matrix
InPlaceCopyMatrixToMatrix. fromSparseToMatrix(SparseMatrix a, Matrix b)
Methods in org.la4j.operation.inplace with parameters of type Matrix Modifier and Type Method Description private Matrix
InPlaceCopyMatrixToMatrix. fromSparseToMatrix(SparseMatrix a, Matrix b)
-
Uses of Matrix in org.la4j.operation.ooplace
Methods in org.la4j.operation.ooplace with parameters of type Matrix Modifier and Type Method Description Matrix
OoPlaceKroneckerProduct. applyCommon(Matrix a, Matrix b)
void
OoPlaceMatricesAddition. ensureApplicableTo(Matrix a, Matrix b)
void
OoPlaceMatricesMultiplication. ensureApplicableTo(Matrix a, Matrix b)
void
OoPlaceMatricesSubtraction. ensureApplicableTo(Matrix a, Matrix b)
void
OoPlaceMatrixByVectorMultiplication. ensureApplicableTo(Matrix a, Vector b)
void
OoPlaceMatrixHadamardProduct. ensureApplicableTo(Matrix a, Matrix b)
void
OoPlaceVectorByMatrixMultiplication. ensureApplicableTo(Vector a, Matrix b)
-
Uses of Matrix in org.la4j.vector
Methods in org.la4j.vector that return Matrix Modifier and Type Method Description Matrix
DenseVector. toColumnMatrix()
Matrix
SparseVector. toColumnMatrix()
Matrix
DenseVector. toDiagonalMatrix()
Matrix
SparseVector. toDiagonalMatrix()
Matrix
DenseVector. toRowMatrix()
Matrix
SparseVector. toRowMatrix()
Methods in org.la4j.vector with parameters of type Matrix Modifier and Type Method Description <T> T
DenseVector. apply(VectorMatrixOperation<T> operation, Matrix that)
<T> T
SparseVector. apply(VectorMatrixOperation<T> operation, Matrix that)
-