Package | Description |
---|---|
org.apache.commons.math.linear |
Linear algebra support.
|
Modifier and Type | Class and Description |
---|---|
class |
NonSquareMatrixException
Thrown when an operation defined only for square matrices is applied to non-square ones.
|
class |
SingularMatrixException
Thrown when a matrix is singular.
|
Modifier and Type | Method and Description |
---|---|
double |
SingularValueDecompositionImpl.getConditionNumber()
Return the condition number of the matrix.
|
RealMatrix |
EigenDecompositionImpl.getD()
Returns the block diagonal matrix D of the decomposition.
|
BigDecimal |
BigMatrixImpl.getDeterminant()
Deprecated.
Returns the determinant of this matrix.
|
BigDecimal |
BigMatrix.getDeterminant()
Deprecated.
Returns the determinant of this matrix.
|
double |
AbstractRealMatrix.getDeterminant()
Deprecated.
|
RealVector |
EigenDecompositionImpl.getEigenvector(int i)
Returns a copy of the ith eigenvector of the original matrix.
|
double |
EigenDecompositionImpl.getImagEigenvalue(int i)
Returns the imaginary part of the ith eigenvalue of the original matrix.
|
double[] |
EigenDecompositionImpl.getImagEigenvalues()
Returns a copy of the imaginary parts of the eigenvalues of the original matrix.
|
RealMatrix |
DecompositionSolver.getInverse()
Get the inverse (or pseudo-inverse) of the decomposed matrix.
|
FieldMatrix<T> |
FieldDecompositionSolver.getInverse()
Get the inverse (or pseudo-inverse) of the decomposed matrix.
|
protected BigMatrix |
BigMatrixImpl.getLUMatrix()
Deprecated.
Returns the LU decomposition as a BigMatrix.
|
double |
SingularValueDecompositionImpl.getNorm()
Returns the L2 norm of the matrix.
|
double |
EigenDecompositionImpl.getRealEigenvalue(int i)
Returns the real part of the ith eigenvalue of the original matrix.
|
double[] |
EigenDecompositionImpl.getRealEigenvalues()
Returns a copy of the real parts of the eigenvalues of the original matrix.
|
RealMatrix |
SingularValueDecompositionImpl.getS()
Returns the diagonal matrix Σ of the decomposition.
|
double[] |
SingularValueDecompositionImpl.getSingularValues()
Returns the diagonal elements of the matrix Σ of the decomposition.
|
RealMatrix |
SingularValueDecompositionImpl.getU()
Returns the matrix U of the decomposition.
|
RealMatrix |
SingularValueDecompositionImpl.getUT()
Returns the transpose of the matrix U of the decomposition.
|
RealMatrix |
EigenDecompositionImpl.getV()
Returns the matrix V of the decomposition.
|
RealMatrix |
SingularValueDecompositionImpl.getV()
Returns the matrix V of the decomposition.
|
RealMatrix |
EigenDecompositionImpl.getVT()
Returns the transpose of the matrix V of the decomposition.
|
RealMatrix |
SingularValueDecompositionImpl.getVT()
Returns the transpose of the matrix V of the decomposition.
|
BigMatrix |
BigMatrixImpl.inverse()
Deprecated.
Returns the inverse matrix if this matrix is invertible.
|
BigMatrix |
BigMatrix.inverse()
Deprecated.
Returns the inverse of this matrix.
|
RealMatrix |
RealMatrix.inverse()
Deprecated.
as of release 2.0, replaced by
|
RealMatrix |
AbstractRealMatrix.inverse()
Deprecated.
|
void |
BigMatrixImpl.luDecompose()
Deprecated.
Computes a new
LU decompostion for this matrix, storing the result for use by other methods.
|
void |
AbstractRealMatrix.luDecompose()
Deprecated.
as of release 2.0, replaced by
LUDecomposition |
void |
RealMatrix.setColumn(int column,
double[] array)
Sets the entries in column number
column
as a column matrix. |
void |
AbstractRealMatrix.setColumn(int column,
double[] array)
Sets the entries in column number
column
as a column matrix. |
void |
BlockRealMatrix.setColumn(int column,
double[] array)
Sets the entries in column number
column
as a column matrix. |
void |
AbstractFieldMatrix.setColumn(int column,
T[] array)
Sets the entries in column number
column
as a column matrix. |
void |
BlockFieldMatrix.setColumn(int column,
T[] array)
Sets the entries in column number
column
as a column matrix. |
void |
FieldMatrix.setColumn(int column,
T[] array)
Sets the entries in column number
column
as a column matrix. |
void |
AbstractFieldMatrix.setColumnMatrix(int column,
FieldMatrix<T> matrix)
Sets the entries in column number
column
as a column matrix. |
void |
BlockFieldMatrix.setColumnMatrix(int column,
FieldMatrix<T> matrix)
Sets the entries in column number
column
as a column matrix. |
void |
FieldMatrix.setColumnMatrix(int column,
FieldMatrix<T> matrix)
Sets the entries in column number
column
as a column matrix. |
void |
RealMatrix.setColumnMatrix(int column,
RealMatrix matrix)
Sets the entries in column number
column
as a column matrix. |
void |
AbstractRealMatrix.setColumnMatrix(int column,
RealMatrix matrix)
Sets the entries in column number
column
as a column matrix. |
void |
BlockRealMatrix.setColumnMatrix(int column,
RealMatrix matrix)
Sets the entries in column number
column
as a column matrix. |
void |
AbstractFieldMatrix.setColumnVector(int column,
FieldVector<T> vector)
Sets the entries in column number
column
as a vector. |
void |
BlockFieldMatrix.setColumnVector(int column,
FieldVector<T> vector)
Sets the entries in column number
column
as a vector. |
void |
FieldMatrix.setColumnVector(int column,
FieldVector<T> vector)
Sets the entries in column number
column
as a vector. |
void |
RealMatrix.setColumnVector(int column,
RealVector vector)
Sets the entries in column number
column
as a vector. |
void |
AbstractRealMatrix.setColumnVector(int column,
RealVector vector)
Sets the entries in column number
column
as a vector. |
void |
BlockRealMatrix.setColumnVector(int column,
RealVector vector)
Sets the entries in column number
column
as a vector. |
void |
RealMatrix.setRow(int row,
double[] array)
Sets the entries in row number
row
as a row matrix. |
void |
AbstractRealMatrix.setRow(int row,
double[] array)
Sets the entries in row number
row
as a row matrix. |
void |
BlockRealMatrix.setRow(int row,
double[] array)
Sets the entries in row number
row
as a row matrix. |
void |
AbstractFieldMatrix.setRow(int row,
T[] array)
Sets the entries in row number
row
as a row matrix. |
void |
BlockFieldMatrix.setRow(int row,
T[] array)
Sets the entries in row number
row
as a row matrix. |
void |
FieldMatrix.setRow(int row,
T[] array)
Sets the entries in row number
row
as a row matrix. |
void |
BlockFieldMatrix.setRowMatrix(int row,
BlockFieldMatrix<T> matrix)
Sets the entries in row number
row
as a row matrix. |
void |
BlockRealMatrix.setRowMatrix(int row,
BlockRealMatrix matrix)
Sets the entries in row number
row
as a row matrix. |
void |
AbstractFieldMatrix.setRowMatrix(int row,
FieldMatrix<T> matrix)
Sets the entries in row number
row
as a row matrix. |
void |
BlockFieldMatrix.setRowMatrix(int row,
FieldMatrix<T> matrix)
Sets the entries in row number
row
as a row matrix. |
void |
FieldMatrix.setRowMatrix(int row,
FieldMatrix<T> matrix)
Sets the entries in row number
row
as a row matrix. |
void |
RealMatrix.setRowMatrix(int row,
RealMatrix matrix)
Sets the entries in row number
row
as a row matrix. |
void |
AbstractRealMatrix.setRowMatrix(int row,
RealMatrix matrix)
Sets the entries in row number
row
as a row matrix. |
void |
BlockRealMatrix.setRowMatrix(int row,
RealMatrix matrix)
Sets the entries in row number
row
as a row matrix. |
void |
AbstractFieldMatrix.setRowVector(int row,
FieldVector<T> vector)
Sets the entries in row number
row
as a vector. |
void |
BlockFieldMatrix.setRowVector(int row,
FieldVector<T> vector)
Sets the entries in row number
row
as a vector. |
void |
FieldMatrix.setRowVector(int row,
FieldVector<T> vector)
Sets the entries in row number
row
as a vector. |
void |
RealMatrix.setRowVector(int row,
RealVector vector)
Sets the entries in row number
row
as a vector. |
void |
AbstractRealMatrix.setRowVector(int row,
RealVector vector)
Sets the entries in row number
row
as a vector. |
void |
BlockRealMatrix.setRowVector(int row,
RealVector vector)
Sets the entries in row number
row
as a vector. |
BigDecimal[] |
BigMatrixImpl.solve(BigDecimal[] b)
Deprecated.
Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
BigDecimal[] |
BigMatrix.solve(BigDecimal[] b)
Deprecated.
Returns the solution vector for a linear system with coefficient
matrix = this and constant vector =
b . |
BigMatrix |
BigMatrixImpl.solve(BigMatrix b)
Deprecated.
Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
BigMatrix |
BigMatrix.solve(BigMatrix b)
Deprecated.
Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
BigDecimal[] |
BigMatrixImpl.solve(double[] b)
Deprecated.
Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
double[] |
DecompositionSolver.solve(double[] b)
Solve the linear equation A × X = B for matrices A.
|
double[] |
RealMatrix.solve(double[] b)
Deprecated.
as of release 2.0, replaced by
DecompositionSolver.solve(double[]) |
double[] |
AbstractRealMatrix.solve(double[] b)
Deprecated.
|
FieldMatrix<T> |
FieldDecompositionSolver.solve(FieldMatrix<T> b)
Solve the linear equation A × X = B for matrices A.
|
FieldVector<T> |
FieldDecompositionSolver.solve(FieldVector<T> b)
Solve the linear equation A × X = B for matrices A.
|
RealMatrix |
DecompositionSolver.solve(RealMatrix b)
Solve the linear equation A × X = B for matrices A.
|
RealMatrix |
RealMatrix.solve(RealMatrix b)
Deprecated.
as of release 2.0, replaced by
DecompositionSolver.solve(RealMatrix) |
RealMatrix |
AbstractRealMatrix.solve(RealMatrix b)
Deprecated.
|
RealVector |
DecompositionSolver.solve(RealVector b)
Solve the linear equation A × X = B for matrices A.
|
T[] |
FieldDecompositionSolver.solve(T[] b)
Solve the linear equation A × X = B for matrices A.
|
Constructor and Description |
---|
EigenDecompositionImpl(double[] main,
double[] secondary,
double splitTolerance)
Calculates the eigen decomposition of the symmetric tridiagonal
matrix.
|
EigenDecompositionImpl(RealMatrix matrix,
double splitTolerance)
Calculates the eigen decomposition of the given symmetric matrix.
|
LUDecompositionImpl(RealMatrix matrix)
Calculates the LU-decomposition of the given matrix.
|
SingularValueDecompositionImpl(RealMatrix matrix)
Calculates the compact Singular Value Decomposition of the given matrix.
|
Copyright © 2003–2016. All rights reserved.