EVSL
1.1.0
EigenValues Slicing Library
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
EXTERNAL
CXSparse
Source
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
}
6
CS_INT
cs_dropzeros
(
cs
*A)
7
{
8
return
(
cs_fkeep
(A, &cs_nonzero, NULL)) ;
/* keep all nonzero entries */
9
}
cs
#define cs
Definition:
cs.h:637
CS_ENTRY
#define CS_ENTRY
Definition:
cs.h:635
cs_dropzeros
CS_INT cs_dropzeros(cs *A)
Definition:
cs_dropzeros.c:6
cs.h
cs_fkeep
CS_INT cs_fkeep(cs *A, CS_INT(*fkeep)(CS_INT, CS_INT, CS_ENTRY, void *), void *other)
Definition:
cs_fkeep.c:3
CS_INT
#define CS_INT
Definition:
cs.h:627
Generated by
1.8.6