Uses of Class
org.la4j.Matrix
Packages that use Matrix
Package
Description
-
Uses of Matrix in org.la4j
Modifier and TypeFieldDescriptionstatic final MatrixMatrixOperation
<Matrix> LinearAlgebra.IN_PLACE_COPY_MATRIX_TO_MATRIX
static final MatrixMatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_KRONECKER_PRODUCT
static final MatrixMatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_MATRICES_MULTIPLICATION
static final MatrixMatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_MATRICES_SUBTRACTION
static final MatrixMatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_MATRIX_ADDITION
static final MatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_MATRIX_BY_ITS_TRANSPOSE_MULTIPLICATION
static final MatrixMatrixOperation
<Matrix> LinearAlgebra.OO_PLACE_MATRIX_HADAMARD_PRODUCT
static final VectorVectorOperation
<Matrix> LinearAlgebra.OO_PLACE_OUTER_PRODUCT
Modifier and TypeMethodDescription<T extends Matrix>
TMatrix.to
(MatrixFactory<T> factory) Converts this matrix using the givenfactory
.Modifier and TypeMethodDescriptionMatrix.add
(double value) Adds givenvalue
(v) to every element of this matrix (A).Adds giventhat
matrix (B) to this matrix (A).Matrix.blank()
Creates the blank matrix (a zero matrix with same size) of this matrix.Matrix.blankOfColumns
(int columns) Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:columns
.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
static Matrix
Matrix.constant
(int rows, int columns, double constant) Creates a constantMatrix
of the given shape andvalue
.Matrix.copy()
Copies this matrix.Matrix.copyOfColumns
(int columns) Copies this matrix into the new matrix with specified column dimension:columns
.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.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
ParsesMatrix
from the given CSV string.static Matrix
Matrix.fromMatrixMarket
(String mm) ParsesMatrix
from the given Matrix Market string.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
.Inserts a giventhat
(B) into this matrix (A).Inserts a giventhat
matrix (B) into this matrix (A).Inserts a giventhat
matrix (B) into this matrix (A).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.insertColumn
(int j, Vector column) Adds one column to matrix.Adds one row to matrix.Matrix.kroneckerProduct
(Matrix that) Calculates the Kronecker product of this matrix (A) and giventhat
matrix (B).Matrix.multiply
(double value) Scales this matrix by givenvalue
(v).Multiplies this matrix (A) by giventhat
matrix (B).Matrix.multiplyByItsTranspose()
Multiplies this matrix by its transpose.Vector.outerProduct
(Vector that) Calculates the outer product of this vector and giventhat
.Matrix.power
(int n) Powers this matrix of given exponent {code n}.static Matrix
static Matrix
Matrix.randomSymmetric
(int size, Random random) Creates a random symmetricMatrix
of the givensize
.Matrix.removeColumn
(int j) Removes one column from matrix.Matrix.removeFirstColumn()
Removes first column from matrix.Matrix.removeFirstRow()
Removes first row from matrix.Matrix.removeLastColumn()
Removes last column from matrix.Matrix.removeLastRow()
Removes last row from matrix.Matrix.removeRow
(int i) Removes one row from matrix.Matrix.rotate()
Rotates this matrix by 90 degrees to the right.Matrix.select
(int[] rowIndices, int[] columnIndices) Returns a new matrix with the selected rows and columns.Matrix.shuffle()
Shuffles this matrix.Matrix.slice
(int fromRow, int fromColumn, int untilRow, int untilColumn) Retrieves the specified sub-matrix of this matrix.Matrix.sliceBottomRight
(int fromRow, int fromColumn) Retrieves the specified sub-matrix of this matrix.Matrix.sliceTopLeft
(int untilRow, int untilColumn) Retrieves the specified sub-matrix of this matrix.Matrix.subtract
(double value) Subtracts givenvalue
(v) from every element of this matrix (A).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.transform
(MatrixFunction function) Builds a new matrix by applying givenfunction
to each element of this matrix.Matrix.transformColumn
(int j, VectorFunction function) Builds a new matrix by applying givenfunction
to each element of specified column in this matrix.Matrix.transformRow
(int i, VectorFunction function) Builds a new matrix by applying givenfunction
to each element of specified row in this matrix.Matrix.transpose()
Transposes this matrix.static Matrix
Matrix.unit
(int rows, int columns) static Matrix
Matrix.zero
(int rows, int columns) Modifier and TypeMethodDescriptionAdds 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
abstract MatrixDecompositor
abstract MatrixInverter
abstract LinearSystemSolver
boolean
Returns true when matrix is equal to givenmatrix
with givenprecision
Matrix.hadamardProduct
(Matrix that) Calculates the Hadamard (element-wise) product of this and giventhat
matrix.Inserts a giventhat
(B) into this matrix (A).Inserts a giventhat
matrix (B) into this matrix (A).Inserts a giventhat
matrix (B) into this matrix (A).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.kroneckerProduct
(Matrix that) Calculates the Kronecker product of this matrix (A) and giventhat
matrix (B).Multiplies this matrix (A) by giventhat
matrix (B).Multiples this vector (X) by giventhat
(A).Subtracts giventhat
matrix (B) from this matrix (A).boolean
boolean
boolean
-
Uses of Matrix in org.la4j.decomposition
Fields in org.la4j.decomposition declared as MatrixMethods in org.la4j.decomposition that return MatrixModifier and TypeMethodDescriptionMatrix[]
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 matrixAbstractDecompositor.self()
MatrixDecompositor.self()
Returns the self matrix of this decompositor.Methods in org.la4j.decomposition with parameters of type MatrixModifier and TypeMethodDescriptionboolean
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
private Vector
private double
EigenDecompositor.generateRi
(Matrix matrix, int i) private void
private void
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 MatrixModifierConstructorDescriptionAbstractDecompositor
(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 MatrixModifier and TypeFieldDescriptionprivate final Matrix
GaussJordanInverter.matrix
private final Matrix
NoPivotGaussInverter.matrix
Methods in org.la4j.inversion that return MatrixModifier and TypeMethodDescriptionGaussJordanInverter.inverse()
MatrixInverter.inverse()
Inverse matrix.NoPivotGaussInverter.inverse()
GaussJordanInverter.self()
MatrixInverter.self()
Returns the self matrix of this inverter.NoPivotGaussInverter.self()
Constructors in org.la4j.inversion with parameters of type MatrixModifierConstructorDescriptionGaussJordanInverter
(Matrix matrix) NoPivotGaussInverter
(Matrix matrix) -
Uses of Matrix in org.la4j.linear
Fields in org.la4j.linear declared as MatrixModifier and TypeFieldDescriptionprotected Matrix
AbstractSolver.a
private final Matrix
GaussianSolver.aa
private final Matrix
JacobiSolver.aa
private final Matrix
SeidelSolver.aa
private final Matrix
ForwardBackSubstitutionSolver.lu
private final Matrix
ForwardBackSubstitutionSolver.p
private final Matrix
LeastSquaresSolver.qr
private final Matrix
LeastSquaresSolver.r
Methods in org.la4j.linear that return MatrixModifier and TypeMethodDescriptionAbstractSolver.self()
LinearSystemSolver.self()
Returns the self matrix of the solver.Methods in org.la4j.linear with parameters of type MatrixModifier and TypeMethodDescriptionboolean
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 MatrixModifierConstructorDescriptionprotected
protected
-
Uses of Matrix in org.la4j.matrix
Classes in org.la4j.matrix with type parameters of type MatrixModifier and TypeClassDescriptionclass
MatrixFactory<T extends Matrix>
An abstract matrix factory.Subclasses of Matrix in org.la4j.matrixModifier and TypeClassDescriptionclass
class
class
class
Methods in org.la4j.matrix that return MatrixModifier and TypeMethodDescriptionSparseMatrix.add
(double value) SparseMatrix.multiply
(double value) ColumnMajorSparseMatrix.rotate()
RowMajorSparseMatrix.rotate()
ColumnMajorSparseMatrix.transpose()
RowMajorSparseMatrix.transpose()
Methods in org.la4j.matrix with parameters of type MatrixModifier and TypeMethodDescription<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
static DenseMatrix
static RowMajorSparseMatrix
static SparseMatrix
-
Uses of Matrix in org.la4j.matrix.dense
Subclasses of Matrix in org.la4j.matrix.denseMethods in org.la4j.matrix.dense with type parameters of type MatrixModifier and TypeMethodDescription<T extends Matrix>
TBasic1DMatrix.to
(MatrixFactory<T> factory) <T extends Matrix>
TBasic2DMatrix.to
(MatrixFactory<T> factory) Methods in org.la4j.matrix.dense that return MatrixModifier and TypeMethodDescriptionBasic1DMatrix.blankOfShape
(int rows, int columns) Basic2DMatrix.blankOfShape
(int rows, int columns) Basic1DMatrix.copyOfShape
(int rows, int columns) Basic2DMatrix.copyOfShape
(int rows, int columns) Methods in org.la4j.matrix.dense with parameters of type Matrix -
Uses of Matrix in org.la4j.matrix.functor
Methods in org.la4j.matrix.functor with parameters of type Matrix -
Uses of Matrix in org.la4j.matrix.sparse
Subclasses of Matrix in org.la4j.matrix.sparseModifier and TypeClassDescriptionclass
This is a CCS (Compressed Column Storage) matrix class.class
This is a CRS (Compressed Row Storage) matrix class.Methods in org.la4j.matrix.sparse with type parameters of type MatrixModifier and TypeMethodDescription<T extends Matrix>
TCCSMatrix.to
(MatrixFactory<T> factory) <T extends Matrix>
TCRSMatrix.to
(MatrixFactory<T> factory) Methods in org.la4j.matrix.sparse that return MatrixModifier and TypeMethodDescriptionCCSMatrix.blankOfShape
(int rows, int columns) CRSMatrix.blankOfShape
(int rows, int columns) CCSMatrix.copyOfShape
(int rows, int columns) CRSMatrix.copyOfShape
(int rows, int columns) CCSMatrix.select
(int[] rowIndices, int[] columnIndices) Returns a CCSMatrix with the selected rows and columns.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 -
Uses of Matrix in org.la4j.operation
Methods in org.la4j.operation with parameters of type MatrixModifier and TypeMethodDescriptionabstract 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 MatrixModifier and TypeMethodDescriptionInPlaceCopyMatrixToMatrix.apply
(ColumnMajorSparseMatrix a, RowMajorSparseMatrix b) InPlaceCopyMatrixToMatrix.apply
(DenseMatrix a, DenseMatrix b) InPlaceCopyMatrixToMatrix.apply
(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b) InPlaceCopyMatrixToMatrix.applySimple
(DenseMatrix a, SparseMatrix b) InPlaceCopyMatrixToMatrix.applySimple
(SparseMatrix a, DenseMatrix b) InPlaceCopyMatrixToMatrix.applySimple
(SparseMatrix a, SparseMatrix b) private Matrix
InPlaceCopyMatrixToMatrix.fromSparseToMatrix
(SparseMatrix a, Matrix b) Methods in org.la4j.operation.inplace with parameters of type MatrixModifier and TypeMethodDescriptionprivate Matrix
InPlaceCopyMatrixToMatrix.fromSparseToMatrix
(SparseMatrix a, Matrix b) -
Uses of Matrix in org.la4j.operation.ooplace
Methods in org.la4j.operation.ooplace that return MatrixModifier and TypeMethodDescriptionOoPlaceMatricesAddition.apply
(DenseMatrix a, DenseMatrix b) OoPlaceMatricesMultiplication.apply
(ColumnMajorSparseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatricesMultiplication.apply
(ColumnMajorSparseMatrix a, DenseMatrix b) OoPlaceMatricesMultiplication.apply
(ColumnMajorSparseMatrix a, RowMajorSparseMatrix b) OoPlaceMatricesMultiplication.apply
(DenseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatricesMultiplication.apply
(DenseMatrix a, DenseMatrix b) OoPlaceMatricesMultiplication.apply
(DenseMatrix a, RowMajorSparseMatrix b) OoPlaceMatricesMultiplication.apply
(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatricesMultiplication.apply
(RowMajorSparseMatrix a, DenseMatrix b) OoPlaceMatricesMultiplication.apply
(RowMajorSparseMatrix a, RowMajorSparseMatrix b) OoPlaceMatricesSubtraction.apply
(ColumnMajorSparseMatrix a, RowMajorSparseMatrix b) OoPlaceMatricesSubtraction.apply
(DenseMatrix a, DenseMatrix b) OoPlaceMatricesSubtraction.apply
(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatrixByItsTransposeMultiplication.apply
(ColumnMajorSparseMatrix a) OoPlaceMatrixByItsTransposeMultiplication.apply
(DenseMatrix a) OoPlaceMatrixByItsTransposeMultiplication.apply
(RowMajorSparseMatrix a) OoPlaceMatrixHadamardProduct.apply
(DenseMatrix a, DenseMatrix b) OoPlaceOuterProduct.apply
(DenseVector a, DenseVector b) OoPlaceOuterProduct.apply
(DenseVector a, SparseVector b) OoPlaceOuterProduct.apply
(SparseVector a, DenseVector b) OoPlaceOuterProduct.apply
(SparseVector a, SparseVector b) OoPlaceKroneckerProduct.applyCommon
(Matrix a, Matrix b) OoPlaceMatricesSubtraction.applySimple
(DenseMatrix a, SparseMatrix b) OoPlaceMatricesSubtraction.applySimple
(SparseMatrix a, DenseMatrix b) OoPlaceMatricesSubtraction.applySimple
(SparseMatrix a, SparseMatrix b) OoPlaceMatricesAddition.applySymmetric
(DenseMatrix a, SparseMatrix b) OoPlaceMatricesAddition.applySymmetric
(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatricesAddition.applySymmetric
(SparseMatrix a, SparseMatrix b) OoPlaceMatrixHadamardProduct.applySymmetric
(DenseMatrix a, SparseMatrix b) OoPlaceMatrixHadamardProduct.applySymmetric
(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b) OoPlaceMatrixHadamardProduct.applySymmetric
(SparseMatrix a, SparseMatrix b) Methods in org.la4j.operation.ooplace with parameters of type MatrixModifier and TypeMethodDescriptionOoPlaceKroneckerProduct.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 MatrixModifier and TypeMethodDescriptionDenseVector.toColumnMatrix()
SparseVector.toColumnMatrix()
DenseVector.toDiagonalMatrix()
SparseVector.toDiagonalMatrix()
DenseVector.toRowMatrix()
SparseVector.toRowMatrix()
Methods in org.la4j.vector with parameters of type MatrixModifier and TypeMethodDescription<T> T
DenseVector.apply
(VectorMatrixOperation<T> operation, Matrix that) <T> T
SparseVector.apply
(VectorMatrixOperation<T> operation, Matrix that)