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_MATRIXstatic MatrixMatrixOperation<Matrix>LinearAlgebra. OO_PLACE_KRONECKER_PRODUCTstatic MatrixMatrixOperation<Matrix>LinearAlgebra. OO_PLACE_MATRICES_MULTIPLICATIONstatic MatrixMatrixOperation<Matrix>LinearAlgebra. OO_PLACE_MATRICES_SUBTRACTIONstatic MatrixMatrixOperation<Matrix>LinearAlgebra. OO_PLACE_MATRIX_ADDITIONstatic MatrixOperation<Matrix>LinearAlgebra. OO_PLACE_MATRIX_BY_ITS_TRANSPOSE_MULTIPLICATIONstatic MatrixMatrixOperation<Matrix>LinearAlgebra. OO_PLACE_MATRIX_HADAMARD_PRODUCTstatic VectorVectorOperation<Matrix>LinearAlgebra. OO_PLACE_OUTER_PRODUCTMethods 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 MatrixMatrix. add(double value)Adds givenvalue(v) to every element of this matrix (A).MatrixMatrix. add(Matrix that)Adds giventhatmatrix (B) to this matrix (A).MatrixMatrix. blank()Creates the blank matrix (a zero matrix with same size) of this matrix.MatrixMatrix. blankOfColumns(int columns)Creates the blank matrix (a zero matrix with same size) of this matrix of the given shape:columns.MatrixMatrix. 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 MatrixMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static MatrixMatrix. constant(int rows, int columns, double constant)Creates a constantMatrixof the given shape andvalue.MatrixMatrix. copy()Copies this matrix.MatrixMatrix. copyOfColumns(int columns)Copies this matrix into the new matrix with specified column dimension:columns.MatrixMatrix. 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)MatrixMatrix. 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 MatrixMatrix. fromCSV(java.lang.String csv)ParsesMatrixfrom the given CSV string.static MatrixMatrix. fromMatrixMarket(java.lang.String mm)ParsesMatrixfrom the given Matrix Market string.MatrixMatrix. hadamardProduct(Matrix that)Calculates the Hadamard (element-wise) product of this and giventhatmatrix.static MatrixMatrix. identity(int size)Creates an identityMatrixof the givensize.MatrixMatrix. insert(Matrix that)Inserts a giventhat(B) into this matrix (A).MatrixMatrix. insert(Matrix that, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. insert(Matrix that, int destRow, int destColumn, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. insertColumn(int j, Vector column)Adds one column to matrix.MatrixMatrix. insertRow(int i, Vector row)Adds one row to matrix.MatrixMatrix. kroneckerProduct(Matrix that)Calculates the Kronecker product of this matrix (A) and giventhatmatrix (B).MatrixMatrix. multiply(double value)Scales this matrix by givenvalue(v).MatrixMatrix. multiply(Matrix that)Multiplies this matrix (A) by giventhatmatrix (B).MatrixMatrix. multiplyByItsTranspose()Multiplies this matrix by its transpose.MatrixVector. outerProduct(Vector that)Calculates the outer product of this vector and giventhat.MatrixMatrix. power(int n)Powers this matrix of given exponent {code n}.static MatrixMatrix. random(int rows, int columns, java.util.Random random)static MatrixMatrix. randomSymmetric(int size, java.util.Random random)Creates a random symmetricMatrixof the givensize.MatrixMatrix. removeColumn(int j)Removes one column from matrix.MatrixMatrix. removeFirstColumn()Removes first column from matrix.MatrixMatrix. removeFirstRow()Removes first row from matrix.MatrixMatrix. removeLastColumn()Removes last column from matrix.MatrixMatrix. removeLastRow()Removes last row from matrix.MatrixMatrix. removeRow(int i)Removes one row from matrix.MatrixMatrix. rotate()Rotates this matrix by 90 degrees to the right.MatrixMatrix. select(int[] rowIndices, int[] columnIndices)Returns a new matrix with the selected rows and columns.MatrixMatrix. shuffle()Shuffles this matrix.MatrixMatrix. slice(int fromRow, int fromColumn, int untilRow, int untilColumn)Retrieves the specified sub-matrix of this matrix.MatrixMatrix. sliceBottomRight(int fromRow, int fromColumn)Retrieves the specified sub-matrix of this matrix.MatrixMatrix. sliceTopLeft(int untilRow, int untilColumn)Retrieves the specified sub-matrix of this matrix.MatrixMatrix. subtract(double value)Subtracts givenvalue(v) from every element of this matrix (A).MatrixMatrix. subtract(Matrix that)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.MatrixMatrix. transform(MatrixFunction function)Builds a new matrix by applying givenfunctionto each element of this matrix.MatrixMatrix. transformColumn(int j, VectorFunction function)Builds a new matrix by applying givenfunctionto each element of specified column in this matrix.MatrixMatrix. transformRow(int i, VectorFunction function)Builds a new matrix by applying givenfunctionto each element of specified row in this matrix.MatrixMatrix. transpose()Transposes this matrix.static MatrixMatrix. unit(int rows, int columns)static MatrixMatrix. zero(int rows, int columns)Methods in org.la4j with parameters of type Matrix Modifier and Type Method Description MatrixMatrix. add(Matrix that)Adds 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 MatrixMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)abstract MatrixDecompositorLinearAlgebra.DecompositorFactory. create(Matrix matrix)abstract MatrixInverterLinearAlgebra.InverterFactory. create(Matrix matrix)abstract LinearSystemSolverLinearAlgebra.SolverFactory. create(Matrix matrix)booleanMatrix. equals(Matrix matrix, double precision)Returns true when matrix is equal to givenmatrixwith givenprecisionMatrixMatrix. hadamardProduct(Matrix that)Calculates the Hadamard (element-wise) product of this and giventhatmatrix.MatrixMatrix. insert(Matrix that)Inserts a giventhat(B) into this matrix (A).MatrixMatrix. insert(Matrix that, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. insert(Matrix that, int destRow, int destColumn, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. insert(Matrix that, int srcRow, int srcColumn, int destRow, int destColumn, int rows, int columns)Inserts a giventhatmatrix (B) into this matrix (A).MatrixMatrix. kroneckerProduct(Matrix that)Calculates the Kronecker product of this matrix (A) and giventhatmatrix (B).MatrixMatrix. multiply(Matrix that)Multiplies this matrix (A) by giventhatmatrix (B).VectorVector. multiply(Matrix that)Multiples this vector (X) by giventhat(A).MatrixMatrix. subtract(Matrix that)Subtracts giventhatmatrix (B) from this matrix (A).booleanMatrices.DiagonallyDominantPredicate. test(Matrix matrix)booleanMatrices.PositiveDefiniteMatrixPredicate. test(Matrix matrix)booleanMatrices.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 MatrixAbstractDecompositor. matrixMethods 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 matrixMatrixAbstractDecompositor. self()MatrixMatrixDecompositor. self()Returns the self matrix of this decompositor.Methods in org.la4j.decomposition with parameters of type Matrix Modifier and Type Method Description booleanCholeskyDecompositor. 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 intEigenDecompositor. findMax(Matrix matrix, int i)private VectorEigenDecompositor. generateR(Matrix matrix)private doubleEigenDecompositor. generateRi(Matrix matrix, int i)private voidEigenDecompositor. hqr2(Matrix H, Matrix V, Vector d, Vector e)private voidEigenDecompositor. orthes(Matrix h, Matrix v, Vector ort)private voidEigenDecompositor. 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 MatrixGaussJordanInverter. matrixprivate MatrixNoPivotGaussInverter. matrixMethods in org.la4j.inversion that return Matrix Modifier and Type Method Description MatrixGaussJordanInverter. inverse()MatrixMatrixInverter. inverse()Inverse matrix.MatrixNoPivotGaussInverter. inverse()MatrixGaussJordanInverter. self()MatrixMatrixInverter. self()Returns the self matrix of this inverter.MatrixNoPivotGaussInverter. 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 MatrixAbstractSolver. aprivate MatrixGaussianSolver. aaprivate MatrixJacobiSolver. aaprivate MatrixSeidelSolver. aaprivate MatrixForwardBackSubstitutionSolver. luprivate MatrixForwardBackSubstitutionSolver. pprivate MatrixLeastSquaresSolver. qrprivate MatrixLeastSquaresSolver. rMethods in org.la4j.linear that return Matrix Modifier and Type Method Description MatrixAbstractSolver. self()MatrixLinearSystemSolver. self()Returns the self matrix of the solver.Methods in org.la4j.linear with parameters of type Matrix Modifier and Type Method Description booleanForwardBackSubstitutionSolver. 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 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 classMatrixFactory<T extends Matrix>An abstract matrix factory.Subclasses of Matrix in org.la4j.matrix Modifier and Type Class Description classColumnMajorSparseMatrixclassDenseMatrixclassRowMajorSparseMatrixclassSparseMatrixMethods in org.la4j.matrix that return Matrix Modifier and Type Method Description MatrixSparseMatrix. add(double value)MatrixSparseMatrix. multiply(double value)MatrixColumnMajorSparseMatrix. rotate()MatrixRowMajorSparseMatrix. rotate()MatrixColumnMajorSparseMatrix. transpose()MatrixRowMajorSparseMatrix. transpose()Methods in org.la4j.matrix with parameters of type Matrix Modifier and Type Method Description <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 ColumnMajorSparseMatrixColumnMajorSparseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static DenseMatrixDenseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static RowMajorSparseMatrixRowMajorSparseMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static SparseMatrixSparseMatrix. 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 classBasic1DMatrixclassBasic2DMatrixMethods 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 MatrixBasic1DMatrix. blankOfShape(int rows, int columns)MatrixBasic2DMatrix. blankOfShape(int rows, int columns)MatrixBasic1DMatrix. copyOfShape(int rows, int columns)MatrixBasic2DMatrix. copyOfShape(int rows, int columns)Methods in org.la4j.matrix.dense with parameters of type Matrix Modifier and Type Method Description static Basic1DMatrixBasic1DMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static Basic2DMatrixBasic2DMatrix. 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 booleanAdvancedMatrixPredicate. 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 classCCSMatrixThis is a CCS (Compressed Column Storage) matrix class.classCRSMatrixThis 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 MatrixCCSMatrix. blankOfShape(int rows, int columns)MatrixCRSMatrix. blankOfShape(int rows, int columns)MatrixCCSMatrix. copyOfShape(int rows, int columns)MatrixCRSMatrix. copyOfShape(int rows, int columns)MatrixCCSMatrix. select(int[] rowIndices, int[] columnIndices)Returns a CCSMatrix with the selected rows and columns.MatrixCRSMatrix. 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 CCSMatrixCCSMatrix. block(Matrix a, Matrix b, Matrix c, Matrix d)static CRSMatrixCRSMatrix. 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 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
Methods in org.la4j.operation.inplace that return Matrix Modifier and Type Method Description MatrixInPlaceCopyMatrixToMatrix. apply(ColumnMajorSparseMatrix a, RowMajorSparseMatrix b)MatrixInPlaceCopyMatrixToMatrix. apply(DenseMatrix a, DenseMatrix b)MatrixInPlaceCopyMatrixToMatrix. apply(RowMajorSparseMatrix a, ColumnMajorSparseMatrix b)MatrixInPlaceCopyMatrixToMatrix. applySimple(DenseMatrix a, SparseMatrix b)MatrixInPlaceCopyMatrixToMatrix. applySimple(SparseMatrix a, DenseMatrix b)MatrixInPlaceCopyMatrixToMatrix. applySimple(SparseMatrix a, SparseMatrix b)private MatrixInPlaceCopyMatrixToMatrix. fromSparseToMatrix(SparseMatrix a, Matrix b)Methods in org.la4j.operation.inplace with parameters of type Matrix Modifier and Type Method Description private MatrixInPlaceCopyMatrixToMatrix. 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 MatrixOoPlaceKroneckerProduct. 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 Matrix Modifier and Type Method Description MatrixDenseVector. toColumnMatrix()MatrixSparseVector. toColumnMatrix()MatrixDenseVector. toDiagonalMatrix()MatrixSparseVector. toDiagonalMatrix()MatrixDenseVector. toRowMatrix()MatrixSparseVector. toRowMatrix()Methods in org.la4j.vector with parameters of type Matrix Modifier and Type Method Description <T> TDenseVector. apply(VectorMatrixOperation<T> operation, Matrix that)<T> TSparseVector. apply(VectorMatrixOperation<T> operation, Matrix that)
-