Class DenseFieldDeterminant
java.lang.Object
org.flag4j.linalg.ops.dense.field_ops.DenseFieldDeterminant
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Field<T>>
Tdet
(AbstractDenseFieldMatrix<?, ?, T> mat) Computes the determinant of a square matrix.static <T extends Field<T>>
Tdet1
(AbstractDenseFieldMatrix<?, ?, T> mat) Explicitly computes the determinant of a 1x1 matrix.static <T extends Field<T>>
Tdet2
(AbstractDenseFieldMatrix<?, ?, T> mat) Explicitly computes the determinant of a 2x2 matrix.static <T extends Field<T>>
Tdet3
(AbstractDenseFieldMatrix<?, ?, T> mat) Explicitly computes the determinant of a 3x3 matrix.static <T extends Field<T>>
TdetLU
(AbstractDenseFieldMatrix<?, ?, T> mat) Computes the determinant of a square matrix using theLU factorization
.static <T extends Field<T>>
TdetTri
(AbstractDenseFieldMatrix<?, ?, T> tri) Computes the determinant of a triangular matrix.static <T extends Field<T>>
TdetTriUnsafe
(AbstractDenseFieldMatrix<?, ?, T> tri) Computes the determinant of a triangular matrix.
-
Method Details
-
det
Computes the determinant of a square matrix.- Parameters:
mat
- Matrix to compute the determinant of.- Returns:
- The determinant of the matrix.
- Throws:
IllegalArgumentException
- If matrix is not square.
-
detLU
Computes the determinant of a square matrix using theLU factorization
.- Parameters:
mat
- Matrix to compute the determinant of.- Returns:
- The determinant of the matrix.
- Throws:
IllegalArgumentException
- If matrix is not square.
-
detTri
Computes the determinant of a triangular matrix.- Parameters:
tri
- Triangular matrix.- Returns:
- The determinant of the triangular matrix
T
.
-
detTriUnsafe
Computes the determinant of a triangular matrix.
WARNING: This method does not make any sanity checks. That is, no checks are made that
tri
is square or triangular.- Parameters:
tri
- Triangular matrix. Assumed to be a square triangular matrix.- Returns:
- The determinant of the triangular matrix
tri
.
-
det3
Explicitly computes the determinant of a 3x3 matrix.- Parameters:
mat
- Matrix to compute the determinant of.- Returns:
- The determinant of the 3x3 matrix.
-
det2
Explicitly computes the determinant of a 2x2 matrix.- Parameters:
mat
- Matrix to compute the determinant of.- Returns:
- The determinant of the 2x2 matrix.
-
det1
Explicitly computes the determinant of a 1x1 matrix.- Parameters:
mat
- Matrix to compute the determinant of.- Returns:
- The determinant of the 1x1 matrix.
-