Package org.tribuo.math.la
Interface Matrix.Factorization
- All Known Implementing Classes:
DenseMatrix.CholeskyFactorization
,DenseMatrix.EigenDecomposition
,DenseMatrix.LUFactorization
- Enclosing interface:
- Matrix
public static interface Matrix.Factorization
Interface for matrix factorizations.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Compute the matrix determinant of the factorized matrix.int
dim1()
First dimension of the factorized matrix.int
dim2()
Second dimension of the factorized matrix.default Matrix
inverse()
Generates the inverse of the matrix with this factorization.Solves the system A * X = Y, where Y is the input matrix, and A is the matrix which produced this factorization.Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this factorization, and b is the returned value.
-
Method Details
-
dim1
int dim1()First dimension of the factorized matrix.- Returns:
- First dimension size.
-
dim2
int dim2()Second dimension of the factorized matrix.- Returns:
- Second dimension size.
-
determinant
double determinant()Compute the matrix determinant of the factorized matrix.- Returns:
- The matrix determinant.
-
solve
Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this factorization, and b is the returned value.- Parameters:
vector
- The input vector y.- Returns:
- The vector b.
-
solve
Solves the system A * X = Y, where Y is the input matrix, and A is the matrix which produced this factorization.- Parameters:
matrix
- The input matrix Y.- Returns:
- The matrix X.
-
inverse
Generates the inverse of the matrix with this factorization.- Returns:
- The matrix inverse.
-