Skip to content
Snippets Groups Projects
cs_droptol.c 252 B
Newer Older
  • Learn to ignore specific revisions
  • Lubomir Riha's avatar
    Lubomir Riha committed
    #include "cs.h"
    static CS_INT cs_tol (CS_INT i, CS_INT j, CS_ENTRY aij, void *tol)
    {
        return (CS_ABS (aij) > *((double *) tol)) ;
    }
    CS_INT cs_droptol (cs *A, double tol)
    {
        return (cs_fkeep (A, &cs_tol, &tol)) ;    /* keep all large entries */
    }