cs_dropzeros.c
Go to the documentation of this file.
1 #include "cs.h"
2 static int cs_nonzero (int i, int j, double aij, void *other)
3 {
4  return ( fabs( aij ) > 2.3e-16 ) ;
5 }
7 {
8  return (cs_fkeep (A, &cs_nonzero, NULL)) ; /* keep all nonzero entries */
9 }
int cs_dropzeros(cs *A)
Definition: cs_dropzeros.c:6
int cs_fkeep(cs *A, int(*fkeep)(int, int, double, void *), void *other)
Definition: cs_fkeep.c:3
Definition: cs.h:16
static int cs_nonzero(int i, int j, double aij, void *other)
Definition: cs_dropzeros.c:2


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:31