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_droptol.c
Go to the documentation of this file.
1
#include "
cs.h
"
2
static
CS_INT
cs_tol (
CS_INT
i,
CS_INT
j,
CS_ENTRY
aij,
void
*tol)
3
{
4
return
(
CS_ABS
(aij) > *((
double
*) tol)) ;
5
}
6
CS_INT
cs_droptol
(
cs
*A,
double
tol)
7
{
8
return
(
cs_fkeep
(A, &cs_tol, &tol)) ;
/* keep all large entries */
9
}
cs_droptol
CS_INT cs_droptol(cs *A, double tol)
Definition:
cs_droptol.c:6
cs
#define cs
Definition:
cs.h:637
CS_ENTRY
#define CS_ENTRY
Definition:
cs.h:635
CS_ABS
#define CS_ABS(x)
Definition:
cs.h:650
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