Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
<T extends Matrix> |
Matrix.to(MatrixFactory<T> factory)
Converts this matrix using the given
factory . |
Modifier and Type | Method and Description |
---|---|
Matrix |
Matrix.add(double value)
Adds given
value (v) to every element of this matrix (A). |
Matrix |
Matrix.add(Matrix that)
Adds given
that 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 x columns . |
static Matrix |
Matrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static Matrix |
Matrix.constant(int rows,
int columns,
double constant)
Creates a constant
Matrix of the given shape and value . |
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 and columns . |
static Matrix |
Matrix.diagonal(int size,
double diagonal)
|
Matrix |
Matrix.divide(double value)
Divides every element of this matrix (A) by given
value (v). |
static Matrix |
Matrix.from1DArray(int rows,
int columns,
double[] array)
Creates a
Matrix of the given 1D array w/o
copying the underlying array. |
static Matrix |
Matrix.from2DArray(double[][] array)
Creates a
Matrix of the given 2D array w/o
copying the underlying array. |
static Matrix |
Matrix.fromCSV(String csv)
Parses
Matrix from the given CSV string. |
static Matrix |
Matrix.fromMatrixMarket(String mm)
Parses
Matrix from the given Matrix Market string. |
Matrix |
Matrix.hadamardProduct(Matrix that)
Calculates the Hadamard (element-wise) product of this and given
that matrix. |
static Matrix |
Matrix.identity(int size)
Creates an identity
Matrix of the given size . |
Matrix |
Matrix.insert(Matrix that)
Inserts a given
that (B) into this matrix (A). |
Matrix |
Matrix.insert(Matrix that,
int rows,
int columns)
Inserts a given
that matrix (B) into this matrix (A). |
Matrix |
Matrix.insert(Matrix that,
int destRow,
int destColumn,
int rows,
int columns)
Inserts a given
that 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 given
that 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 given
that matrix (B). |
Matrix |
Matrix.multiply(double value)
Scales this matrix by given
value (v). |
Matrix |
Matrix.multiply(Matrix that)
Multiplies this matrix (A) by given
that matrix (B). |
Matrix |
Matrix.multiplyByItsTranspose()
Multiplies this matrix by its transpose.
|
Matrix |
Vector.outerProduct(Vector that)
Calculates the outer product of this vector and given
that . |
Matrix |
Matrix.power(int n)
Powers this matrix of given exponent {code n}.
|
static Matrix |
Matrix.random(int rows,
int columns,
Random random)
|
static Matrix |
Matrix.randomSymmetric(int size,
Random random)
Creates a random symmetric
Matrix of the given size . |
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 given
value (v) from every element of this matrix (A). |
Matrix |
Matrix.subtract(Matrix that)
Subtracts given
that 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 given
function to each element of this matrix. |
Matrix |
Matrix.transformColumn(int j,
VectorFunction function)
Builds a new matrix by applying given
function to each element of specified
column in this matrix. |
Matrix |
Matrix.transformRow(int i,
VectorFunction function)
Builds a new matrix by applying given
function 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)
|
Modifier and Type | Method and Description |
---|---|
Matrix |
Matrix.add(Matrix that)
Adds given
that matrix (B) to this matrix (A). |
abstract <T> T |
Matrix.apply(MatrixMatrixOperation<T> operation,
Matrix that)
Pipes this matrix to a given
operation . |
abstract <T> T |
Vector.apply(VectorMatrixOperation<T> operation,
Matrix that)
Pipes this vector to a given
operation . |
static Matrix |
Matrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
abstract LinearSystemSolver |
LinearAlgebra.SolverFactory.create(Matrix matrix) |
abstract MatrixInverter |
LinearAlgebra.InverterFactory.create(Matrix matrix) |
abstract MatrixDecompositor |
LinearAlgebra.DecompositorFactory.create(Matrix matrix) |
boolean |
Matrix.equals(Matrix matrix,
double precision)
Returns true when matrix is equal to given
matrix with given precision |
Matrix |
Matrix.hadamardProduct(Matrix that)
Calculates the Hadamard (element-wise) product of this and given
that matrix. |
Matrix |
Matrix.insert(Matrix that)
Inserts a given
that (B) into this matrix (A). |
Matrix |
Matrix.insert(Matrix that,
int rows,
int columns)
Inserts a given
that matrix (B) into this matrix (A). |
Matrix |
Matrix.insert(Matrix that,
int destRow,
int destColumn,
int rows,
int columns)
Inserts a given
that 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 given
that matrix (B) into this matrix (A). |
Matrix |
Matrix.kroneckerProduct(Matrix that)
Calculates the Kronecker product of this matrix (A) and given
that matrix (B). |
Vector |
Vector.multiply(Matrix that)
Multiples this vector (X) by given
that (A). |
Matrix |
Matrix.multiply(Matrix that)
Multiplies this matrix (A) by given
that matrix (B). |
Matrix |
Matrix.subtract(Matrix that)
Subtracts given
that matrix (B) from this matrix (A). |
Modifier and Type | Field and Description |
---|---|
protected Matrix |
AbstractDecompositor.matrix |
Modifier and Type | Method and Description |
---|---|
Matrix[] |
SingularValueDecompositor.decompose()
Returns the result of Singular Value decomposition of given matrix
|
Matrix[] |
RawQRDecompositor.decompose() |
Matrix[] |
RawLUDecompositor.decompose() |
Matrix[] |
QRDecompositor.decompose()
Returns the result of QR decomposition of given matrix
|
Matrix[] |
MatrixDecompositor.decompose()
Decomposes the wrapped matrix.
|
Matrix[] |
LUDecompositor.decompose()
Returns the result of LU decomposition of given matrix
|
Matrix[] |
EigenDecompositor.decompose()
Returns the result of Eigen (EVD) decomposition of given matrix
|
Matrix[] |
CholeskyDecompositor.decompose()
Returns the result of Cholesky decomposition of given matrix
|
Matrix |
MatrixDecompositor.self()
Returns the self matrix of this decompositor.
|
Matrix |
AbstractDecompositor.self() |
Modifier and Type | Method and Description |
---|---|
boolean |
SingularValueDecompositor.applicableTo(Matrix matrix) |
boolean |
RawQRDecompositor.applicableTo(Matrix matrix) |
boolean |
RawLUDecompositor.applicableTo(Matrix matrix) |
boolean |
MatrixDecompositor.applicableTo(Matrix matrix)
Checks whether this decompositor is applicable to given matrix or not.
|
boolean |
EigenDecompositor.applicableTo(Matrix matrix) |
boolean |
CholeskyDecompositor.applicableTo(Matrix matrix) |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
Matrix |
NoPivotGaussInverter.inverse() |
Matrix |
MatrixInverter.inverse()
Inverse matrix.
|
Matrix |
GaussJordanInverter.inverse() |
Matrix |
NoPivotGaussInverter.self() |
Matrix |
MatrixInverter.self()
Returns the self matrix of this inverter.
|
Matrix |
GaussJordanInverter.self() |
Constructor and Description |
---|
GaussJordanInverter(Matrix matrix) |
NoPivotGaussInverter(Matrix matrix) |
Modifier and Type | Field and Description |
---|---|
protected Matrix |
AbstractSolver.a |
Modifier and Type | Method and Description |
---|---|
Matrix |
LinearSystemSolver.self()
Returns the self matrix of the solver.
|
Matrix |
AbstractSolver.self() |
Modifier and Type | Method and Description |
---|---|
boolean |
SweepSolver.applicableTo(Matrix matrix) |
boolean |
SquareRootSolver.applicableTo(Matrix matrix) |
boolean |
SeidelSolver.applicableTo(Matrix matrix) |
boolean |
LinearSystemSolver.applicableTo(Matrix matrix)
Checks whether this solver applicable to given
matrix or not. |
boolean |
LeastSquaresSolver.applicableTo(Matrix matrix) |
boolean |
LeastNormSolver.applicableTo(Matrix matrix) |
boolean |
JacobiSolver.applicableTo(Matrix matrix) |
boolean |
GaussianSolver.applicableTo(Matrix matrix) |
boolean |
ForwardBackSubstitutionSolver.applicableTo(Matrix matrix) |
Constructor and 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) |
Modifier and Type | Class and Description |
---|---|
class |
MatrixFactory<T extends Matrix>
An abstract matrix factory.
|
Modifier and Type | Class and Description |
---|---|
class |
ColumnMajorSparseMatrix |
class |
DenseMatrix |
class |
RowMajorSparseMatrix |
class |
SparseMatrix |
Modifier and Type | Method and Description |
---|---|
Matrix |
SparseMatrix.add(double value) |
Matrix |
SparseMatrix.multiply(double value) |
Matrix |
RowMajorSparseMatrix.rotate() |
Matrix |
ColumnMajorSparseMatrix.rotate() |
Matrix |
RowMajorSparseMatrix.transpose() |
Matrix |
ColumnMajorSparseMatrix.transpose() |
Modifier and Type | Method and Description |
---|---|
<T> T |
RowMajorSparseMatrix.apply(MatrixMatrixOperation<T> operation,
Matrix that) |
<T> T |
DenseMatrix.apply(MatrixMatrixOperation<T> operation,
Matrix that) |
<T> T |
ColumnMajorSparseMatrix.apply(MatrixMatrixOperation<T> operation,
Matrix that) |
static SparseMatrix |
SparseMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static RowMajorSparseMatrix |
RowMajorSparseMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static DenseMatrix |
DenseMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static ColumnMajorSparseMatrix |
ColumnMajorSparseMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
Modifier and Type | Class and Description |
---|---|
class |
Basic1DMatrix |
class |
Basic2DMatrix |
Modifier and Type | Method and Description |
---|---|
<T extends Matrix> |
Basic2DMatrix.to(MatrixFactory<T> factory) |
<T extends Matrix> |
Basic1DMatrix.to(MatrixFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
Matrix |
Basic2DMatrix.blankOfShape(int rows,
int columns) |
Matrix |
Basic1DMatrix.blankOfShape(int rows,
int columns) |
Matrix |
Basic2DMatrix.copyOfShape(int rows,
int columns) |
Matrix |
Basic1DMatrix.copyOfShape(int rows,
int columns) |
Modifier and Type | Method and Description |
---|---|
static Basic2DMatrix |
Basic2DMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static Basic1DMatrix |
Basic1DMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
Modifier and Type | Method and Description |
---|---|
boolean |
AdvancedMatrixPredicate.test(Matrix matrix)
Tests given
matrix . |
Modifier and Type | Class and Description |
---|---|
class |
CCSMatrix
This is a CCS (Compressed Column Storage) matrix class.
|
class |
CRSMatrix
This is a CRS (Compressed Row Storage) matrix class.
|
Modifier and Type | Method and Description |
---|---|
<T extends Matrix> |
CRSMatrix.to(MatrixFactory<T> factory) |
<T extends Matrix> |
CCSMatrix.to(MatrixFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
Matrix |
CRSMatrix.blankOfShape(int rows,
int columns) |
Matrix |
CCSMatrix.blankOfShape(int rows,
int columns) |
Matrix |
CRSMatrix.copyOfShape(int rows,
int columns) |
Matrix |
CCSMatrix.copyOfShape(int rows,
int columns) |
Matrix |
CRSMatrix.select(int[] rowIndices,
int[] columnIndices)
Returns a CRSMatrix with the selected rows and columns.
|
Matrix |
CCSMatrix.select(int[] rowIndices,
int[] columnIndices)
Returns a CCSMatrix with the selected rows and columns.
|
Modifier and Type | Method and Description |
---|---|
static CRSMatrix |
CRSMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
static CCSMatrix |
CCSMatrix.block(Matrix a,
Matrix b,
Matrix c,
Matrix d)
|
Modifier and Type | Method and Description |
---|---|
abstract R |
CommonMatrixOperation.applyCommon(Matrix a) |
abstract R |
CommonMatrixMatrixOperation.applyCommon(Matrix a,
Matrix b) |
void |
MatrixOperation.ensureApplicableTo(Matrix a) |
void |
MatrixMatrixOperation.ensureApplicableTo(Matrix a,
Matrix b) |
void |
MatrixVectorOperation.ensureApplicableTo(Matrix a,
Vector b) |
void |
VectorMatrixOperation.ensureApplicableTo(Vector a,
Matrix b) |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
Matrix |
OoPlaceKroneckerProduct.applyCommon(Matrix a,
Matrix b) |
void |
OoPlaceMatrixHadamardProduct.ensureApplicableTo(Matrix a,
Matrix b) |
void |
OoPlaceMatricesSubtraction.ensureApplicableTo(Matrix a,
Matrix b) |
void |
OoPlaceMatricesMultiplication.ensureApplicableTo(Matrix a,
Matrix b) |
void |
OoPlaceMatricesAddition.ensureApplicableTo(Matrix a,
Matrix b) |
void |
OoPlaceMatrixByVectorMultiplication.ensureApplicableTo(Matrix a,
Vector b) |
void |
OoPlaceVectorByMatrixMultiplication.ensureApplicableTo(Vector a,
Matrix b) |
Modifier and Type | Method and Description |
---|---|
Matrix |
SparseVector.toColumnMatrix() |
Matrix |
DenseVector.toColumnMatrix() |
Matrix |
SparseVector.toDiagonalMatrix() |
Matrix |
DenseVector.toDiagonalMatrix() |
Matrix |
SparseVector.toRowMatrix() |
Matrix |
DenseVector.toRowMatrix() |
Modifier and Type | Method and Description |
---|---|
<T> T |
SparseVector.apply(VectorMatrixOperation<T> operation,
Matrix that) |
<T> T |
DenseVector.apply(VectorMatrixOperation<T> operation,
Matrix that) |
Copyright © 2015. All rights reserved.