T- the type of the field elements
public class FieldLUDecomposition<T extends FieldElement<T>> extends Object
The LUP-decomposition of a matrix A consists of three matrices L, U and P that satisfy: PA = LU, L is lower triangular, and U is upper triangular and P is a permutation matrix. All matrices are m×m.
field elements do not provide an ordering
operator, the permutation matrix is computed here only in order to avoid
a zero pivot element, no attempt is done to get the largest pivot
This class is based on the class with similar name from the JAMA library.
getPmethod has been added,
detmethod has been renamed as
getDoublePivotmethod has been removed (but the int based
getPivotmethod has been kept),
isNonSingularmethods have been replaced by a
getSolvermethod and the equivalent methods provided by the returned
|Constructor and Description|
Calculates the LU-decomposition of the given matrix.
|Modifier and Type||Method and Description|
Return the determinant of the matrix.
Returns the matrix L of the decomposition.
Returns the P rows permutation matrix.
Returns the pivot permutation vector.
Get a solver for finding the A × X = B solution in exact linear sense.
Returns the matrix U of the decomposition.
public FieldMatrix<T> getL()
L is a lower-triangular matrix
public FieldMatrix<T> getU()
U is an upper-triangular matrix
public FieldMatrix<T> getP()
P is a sparse matrix with exactly one element set to 1.0 in each row and each column, all other elements being set to 0.0.
The positions of the 1 elements are given by the
pivot permutation vector.
public int getPivot()
public T getDeterminant()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.