/** * The nullity of the decomposed matrix. * * @see SingularOps#nullity(org.ejml.interfaces.decomposition.SingularValueDecomposition, double) * * @return The matrix's nullity */ public int nullity() { return SingularOps.nullity(svd,10.0*UtilEjml.EPS); }
/** * The nullity of the decomposed matrix. * * @see SingularOps#nullity(org.ejml.interfaces.decomposition.SingularValueDecomposition, double) * * @return The matrix's nullity */ public int nullity() { return SingularOps.nullity(svd,10.0*UtilEjml.EPS); }
/** * The nullity of the decomposed matrix. * * @see SingularOps#nullity(org.ejml.interfaces.decomposition.SingularValueDecomposition, double) * * @return The matrix's nullity */ public int nullity() { return SingularOps.nullity(svd,10.0*UtilEjml.EPS); }
/** * Extracts the nullity of a matrix using a preexisting decomposition and default threshold. * * @see #singularThreshold(org.ejml.interfaces.decomposition.SingularValueDecomposition) * * @param svd A precomputed decomposition. Not modified. * @return The nullity of the decomposed matrix. */ public static int nullity( SingularValueDecomposition svd ) { double threshold = singularThreshold(svd); return nullity(svd, threshold); }
/** * Computes the nullity of a matrix using the specified tolerance. * * @param A Matrix whose rank is to be calculated. Not modified. * @param threshold The numerical threshold used to determine a singular value. * @return The matrix's nullity. */ public static int nullity( DenseMatrix64F A , double threshold ) { SingularValueDecomposition<DenseMatrix64F> svd = DecompositionFactory.svd(A.numRows,A.numCols,false,false,true); if( svd.inputModified() ) A = A.copy(); if( !svd.decompose(A) ) throw new RuntimeException("Decomposition failed"); return SingularOps.nullity(svd,threshold); } }
/** * Computes the nullity of a matrix using the specified tolerance. * * @param A Matrix whose rank is to be calculated. Not modified. * @param threshold The numerical threshold used to determine a singular value. * @return The matrix's nullity. */ public static int nullity( DenseMatrix64F A , double threshold ) { SingularValueDecomposition<DenseMatrix64F> svd = DecompositionFactory.svd(A.numRows,A.numCols,false,false,true); if( svd.inputModified() ) A = A.copy(); if( !svd.decompose(A) ) throw new RuntimeException("Decomposition failed"); return SingularOps.nullity(svd,threshold); } }
/** * Computes the nullity of a matrix using the specified tolerance. * * @param A Matrix whose rank is to be calculated. Not modified. * @param threshold The numerical threshold used to determine a singular value. * @return The matrix's nullity. */ public static int nullity( DenseMatrix64F A , double threshold ) { SingularValueDecomposition<DenseMatrix64F> svd = DecompositionFactory.svd(A.numRows,A.numCols,false,false,true); if( svd.inputModified() ) A = A.copy(); if( !svd.decompose(A) ) throw new RuntimeException("Decomposition failed"); return SingularOps.nullity(svd,threshold); } }