@Override
public double getDeterminant(final Matrix<?> m) {
Validate.notNull(m, "m");
if (m instanceof DoubleMatrix2D) {
final RealMatrix temp = CommonsMathWrapper.wrap((DoubleMatrix2D) m);
final LUDecomposition lud = new LUDecompositionImpl(temp);
return lud.getDeterminant();
}
throw new IllegalArgumentException("Can only find determinant of DoubleMatrix2D; have " + m.getClass());
}