public class DeterminantFromMinor extends Object
Computes 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.
LUDecompositionAlt| Constructor and Description |
|---|
DeterminantFromMinor(int width) |
DeterminantFromMinor(int width,
int minWidth) |
public DeterminantFromMinor(int width)
width - The width of the matrices that it will be computing the determinant forpublic DeterminantFromMinor(int width,
int minWidth)
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.public double compute(RowD1Matrix64F mat)
mat - The matrix whose determinant is to be computed.Copyright © 2013. All Rights Reserved.