EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
cs_dropzeros.c
Go to the documentation of this file.
1 #include "cs.h"
2 static CS_INT cs_nonzero (CS_INT i, CS_INT j, CS_ENTRY aij, void *other)
3 {
4  return (aij != 0) ;
5 }
7 {
8  return (cs_fkeep (A, &cs_nonzero, NULL)) ; /* keep all nonzero entries */
9 }
#define cs
Definition: cs.h:637
#define CS_ENTRY
Definition: cs.h:635
CS_INT cs_dropzeros(cs *A)
Definition: cs_dropzeros.c:6
CS_INT cs_fkeep(cs *A, CS_INT(*fkeep)(CS_INT, CS_INT, CS_ENTRY, void *), void *other)
Definition: cs_fkeep.c:3
#define CS_INT
Definition: cs.h:627