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_MATRIXstatic final MatrixMatrixOperation<Matrix> LinearAlgebra.OO_PLACE_KRONECKER_PRODUCTstatic final MatrixMatrixOperation<Matrix> LinearAlgebra.OO_PLACE_MATRICES_MULTIPLICATIONstatic final MatrixMatrixOperation<Matrix> LinearAlgebra.OO_PLACE_MATRICES_SUBTRACTIONstatic final MatrixMatrixOperation<Matrix> LinearAlgebra.OO_PLACE_MATRIX_ADDITIONstatic final MatrixOperation<Matrix> LinearAlgebra.OO_PLACE_MATRIX_BY_ITS_TRANSPOSE_MULTIPLICATIONstatic final MatrixMatrixOperation<Matrix> LinearAlgebra.OO_PLACE_MATRIX_HADAMARD_PRODUCTstatic final VectorVectorOperation<Matrix> LinearAlgebra.OO_PLACE_OUTER_PRODUCTModifier 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 giventhatmatrix (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 MatrixMatrix.blankOfShape(int rows, int columns) Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:rowsxcolumns.static Matrixstatic MatrixMatrix.constant(int rows, int columns, double constant) Creates a constantMatrixof 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 MatrixMatrix.copyOfShape(int rows, int columns) Copies this matrix into the new matrix with specified dimensions:rowsandcolumns.static MatrixMatrix.diagonal(int size, double diagonal) Matrix.divide(double value) Divides every element of this matrix (A) by givenvalue(v).static MatrixMatrix.from1DArray(int rows, int columns, double[] array) Creates aMatrixof the given 1Darrayw/o copying the underlying array.static MatrixMatrix.from2DArray(double[][] array) Creates aMatrixof the given 2Darrayw/o copying the underlying array.static MatrixParsesMatrixfrom the given CSV string.static MatrixMatrix.fromMatrixMarket(String mm) ParsesMatrixfrom the given Matrix Market string.Matrix.hadamardProduct(Matrix that) Calculates the Hadamard (element-wise) product of this and giventhatmatrix.static MatrixMatrix.identity(int size) Creates an identityMatrixof the givensize.Inserts a giventhat(B) into this matrix (A).Inserts a giventhatmatrix (B) into this matrix (A).Inserts a giventhatmatrix (B) into this matrix (A).Matrix.insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns) Inserts a giventhatmatrix (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 giventhatmatrix (B).Matrix.multiply(double value) Scales this matrix by givenvalue(v).Multiplies this matrix (A) by giventhatmatrix (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 Matrixstatic MatrixMatrix.randomSymmetric(int size, Random random) Creates a random symmetricMatrixof 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 giventhatmatrix (B) from this matrix (A).abstract MatrixVector.toColumnMatrix()Converts this vector to matrix with only one column.abstract MatrixVector.toDiagonalMatrix()Converts this vector to a diagonal matrix.abstract MatrixVector.toRowMatrix()Converts this vector to matrix with only one row.Matrix.transform(MatrixFunction function) Builds a new matrix by applying givenfunctionto each element of this matrix.Matrix.transformColumn(int j, VectorFunction function) Builds a new matrix by applying givenfunctionto each element of specified column in this matrix.Matrix.transformRow(int i, VectorFunction function) Builds a new matrix by applying givenfunctionto each element of specified row in this matrix.Matrix.transpose()Transposes this matrix.static MatrixMatrix.unit(int rows, int columns) static MatrixMatrix.zero(int rows, int columns) Modifier and TypeMethodDescriptionAdds giventhatmatrix (B) to this matrix (A).abstract <T> TMatrix.apply(MatrixMatrixOperation<T> operation, Matrix that) Pipes this matrix to a givenoperation.abstract <T> TVector.apply(VectorMatrixOperation<T> operation, Matrix that) Pipes this vector to a givenoperation.static Matrixabstract MatrixDecompositorabstract MatrixInverterabstract LinearSystemSolverbooleanReturns true when matrix is equal to givenmatrixwith givenprecisionMatrix.hadamardProduct(Matrix that) Calculates the Hadamard (element-wise) product of this and giventhatmatrix.Inserts a giventhat(B) into this matrix (A).Inserts a giventhatmatrix (B) into this matrix (A).Inserts a giventhatmatrix (B) into this matrix (A).Matrix.insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns) Inserts a giventhatmatrix (B) into this matrix (A).Matrix.kroneckerProduct(Matrix that) Calculates the Kronecker product of this matrix (A) and giventhatmatrix (B).Multiplies this matrix (A) by giventhatmatrix (B).Multiples this vector (X) by giventhat(A).Subtracts giventhatmatrix (B) from this matrix (A).booleanbooleanboolean -
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 TypeMethodDescriptionbooleanCholeskyDecompositor.applicableTo(Matrix matrix) booleanEigenDecompositor.applicableTo(Matrix matrix) booleanMatrixDecompositor.applicableTo(Matrix matrix) Checks whether this decompositor is applicable to given matrix or not.booleanRawLUDecompositor.applicableTo(Matrix matrix) booleanRawQRDecompositor.applicableTo(Matrix matrix) booleanSingularValueDecompositor.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 intprivate Vectorprivate doubleEigenDecompositor.generateRi(Matrix matrix, int i) private voidprivate voidprivate voidEigenDecompositor.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 MatrixGaussJordanInverter.matrixprivate final MatrixNoPivotGaussInverter.matrixMethods 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 MatrixAbstractSolver.aprivate final MatrixGaussianSolver.aaprivate final MatrixJacobiSolver.aaprivate final MatrixSeidelSolver.aaprivate final MatrixForwardBackSubstitutionSolver.luprivate final MatrixForwardBackSubstitutionSolver.pprivate final MatrixLeastSquaresSolver.qrprivate final MatrixLeastSquaresSolver.rMethods 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 TypeMethodDescriptionbooleanForwardBackSubstitutionSolver.applicableTo(Matrix matrix) booleanGaussianSolver.applicableTo(Matrix matrix) booleanJacobiSolver.applicableTo(Matrix matrix) booleanLeastNormSolver.applicableTo(Matrix matrix) booleanLeastSquaresSolver.applicableTo(Matrix matrix) booleanLinearSystemSolver.applicableTo(Matrix matrix) Checks whether this solver applicable to givenmatrixor not.booleanSeidelSolver.applicableTo(Matrix matrix) booleanSquareRootSolver.applicableTo(Matrix matrix) booleanSweepSolver.applicableTo(Matrix matrix) private voidGaussianSolver.backSubstitution(Matrix matrix, Vector result) private voidGaussianSolver.triangularizeWithPivoting(Matrix matrix) Constructors in org.la4j.linear with parameters of type MatrixModifierConstructorDescriptionprotectedprotected -
Uses of Matrix in org.la4j.matrix
Classes in org.la4j.matrix with type parameters of type MatrixModifier and TypeClassDescriptionclassMatrixFactory<T extends Matrix>An abstract matrix factory.Subclasses of Matrix in org.la4j.matrixModifier and TypeClassDescriptionclassclassclassclassMethods 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> TColumnMajorSparseMatrix.apply(MatrixMatrixOperation<T> operation, Matrix that) <T> TDenseMatrix.apply(MatrixMatrixOperation<T> operation, Matrix that) <T> TRowMajorSparseMatrix.apply(MatrixMatrixOperation<T> operation, Matrix that) static ColumnMajorSparseMatrixstatic DenseMatrixstatic RowMajorSparseMatrixstatic 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 TypeClassDescriptionclassThis is a CCS (Compressed Column Storage) matrix class.classThis 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 RCommonMatrixMatrixOperation.applyCommon(Matrix a, Matrix b) abstract RCommonMatrixOperation.applyCommon(Matrix a) voidMatrixMatrixOperation.ensureApplicableTo(Matrix a, Matrix b) voidMatrixOperation.ensureApplicableTo(Matrix a) voidMatrixVectorOperation.ensureApplicableTo(Matrix a, Vector b) voidVectorMatrixOperation.ensureApplicableTo(Vector a, Matrix b) -
Uses of Matrix in org.la4j.operation.inplace
Subclasses with type arguments of type Matrix in org.la4j.operation.inplaceMethods 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 MatrixInPlaceCopyMatrixToMatrix.fromSparseToMatrix(SparseMatrix a, Matrix b) Methods in org.la4j.operation.inplace with parameters of type MatrixModifier and TypeMethodDescriptionprivate MatrixInPlaceCopyMatrixToMatrix.fromSparseToMatrix(SparseMatrix a, Matrix b) -
Uses of Matrix in org.la4j.operation.ooplace
Subclasses with type arguments of type Matrix in org.la4j.operation.ooplaceModifier and TypeClassDescriptionclassclassclassclassclassclassclassMethods 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) voidOoPlaceMatricesAddition.ensureApplicableTo(Matrix a, Matrix b) voidOoPlaceMatricesMultiplication.ensureApplicableTo(Matrix a, Matrix b) voidOoPlaceMatricesSubtraction.ensureApplicableTo(Matrix a, Matrix b) voidOoPlaceMatrixByVectorMultiplication.ensureApplicableTo(Matrix a, Vector b) voidOoPlaceMatrixHadamardProduct.ensureApplicableTo(Matrix a, Matrix b) voidOoPlaceVectorByMatrixMultiplication.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> TDenseVector.apply(VectorMatrixOperation<T> operation, Matrix that) <T> TSparseVector.apply(VectorMatrixOperation<T> operation, Matrix that)