|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ejml.alg.dense.misc.NaiveDeterminant
public class NaiveDeterminant
Computes the determinant using different very simple and computationally expensive algorithms.
| Constructor Summary | |
|---|---|
NaiveDeterminant()
|
|
| Method Summary | |
|---|---|
static double |
leibniz(DenseMatrix64F mat)
Computes the determinant of the matrix using Leibniz's formula |
static double |
recursive(DenseMatrix64F mat)
A simple and inefficient algorithm for computing the determinant. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NaiveDeterminant()
| Method Detail |
|---|
public static double leibniz(DenseMatrix64F mat)
Computes the determinant of the matrix using Leibniz's formula
A direct implementation of Leibniz determinant equation. This is of little practical use because of its slow runtime of O(n!) where n is the width of the matrix. LU decomposition should be used instead. One advantage of Leibniz's equation is how simplistic it is.
det(A) = Sum( σ in Sn ; sgn(σ) Prod( i = 1 to n ; ai,σ(i)) )
mat - The matrix whose determinant is computed.
public static double recursive(DenseMatrix64F mat)
A simple and inefficient algorithm for computing the determinant. This should never be used.
It is at least two orders of magnitude slower than DeterminantFromMinor. This is included
to provide a point of comparision for other algorithms.
mat - The matrix that the determinant is to be computed from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||