Package org.ejml.dense.row.misc
Class DeterminantFromMinor_FDRM
- java.lang.Object
-
- org.ejml.dense.row.misc.DeterminantFromMinor_FDRM
-
public class DeterminantFromMinor_FDRM extends java.lang.ObjectComputes the determinant of a matrix using Laplace expansion. This is done using minor matrices as is shown below:
|A| = Sum{ i=1:k ; aij Cij }
Cij = (-1)i+j Mij
Where M_ij is the minor of matrix A formed by eliminating row i and column j from A.This is significantly more computationally expensive than using LU decomposition, but its computation has the advantage being independent of the matrices value.
- See Also:
LUDecompositionAlt_FDRM
-
-
Constructor Summary
Constructors Constructor Description DeterminantFromMinor_FDRM(int width)DeterminantFromMinor_FDRM(int width, int minWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatcompute(org.ejml.data.FMatrix1Row mat)Computes the determinant for the specified matrix.
-
-
-
Constructor Detail
-
DeterminantFromMinor_FDRM
public DeterminantFromMinor_FDRM(int width)
- Parameters:
width- The width of the matrices that it will be computing the determinant for
-
DeterminantFromMinor_FDRM
public DeterminantFromMinor_FDRM(int width, int minWidth)- Parameters:
width- The width of the matrices that it will be computing the determinant forminWidth- At which point should it use a predefined function to compute the determinant.
-
-
Method Detail
-
compute
public float compute(org.ejml.data.FMatrix1Row mat)
Computes the determinant for the specified matrix. It must be square and have the same width and height as what was specified in the constructor.- Parameters:
mat- The matrix whose determinant is to be computed.- Returns:
- The determinant.
-
-