Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
external_packages
csparse
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
}
6
int
cs_dropzeros
(
cs
*
A
)
7
{
8
return
(
cs_fkeep
(A, &
cs_nonzero
, NULL)) ;
/* keep all nonzero entries */
9
}
example1.A
A
Definition:
example1.py:34
cs_dropzeros
int cs_dropzeros(cs *A)
Definition:
cs_dropzeros.c:6
cs_fkeep
int cs_fkeep(cs *A, int(*fkeep)(int, int, double, void *), void *other)
Definition:
cs_fkeep.c:3
cs.h
cs_sparse
Definition:
cs.h:16
cs_nonzero
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