Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
external_packages
csparse
cs_droptol.c
Go to the documentation of this file.
1
#include "
cs.h
"
2
static
int
cs_tol
(
int
i,
int
j,
double
aij,
void
*tol)
3
{
4
return
(fabs (aij) > *((
double
*) tol)) ;
5
}
6
int
cs_droptol
(
cs
*
A
,
double
tol)
7
{
8
return
(
cs_fkeep
(A, &
cs_tol
, &tol)) ;
/* keep all large entries */
9
}
cs_tol
static int cs_tol(int i, int j, double aij, void *tol)
Definition:
cs_droptol.c:2
example1.A
A
Definition:
example1.py:34
cs_droptol
int cs_droptol(cs *A, double tol)
Definition:
cs_droptol.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
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:31