Amesos Package Browser (Single Doxygen Collection) Development
Defines | Functions
amesos_cholmod_check.c File Reference
#include "amesos_cholmod_internal.h"
#include "amesos_cholmod_check.h"
Include dependency graph for amesos_cholmod_check.c:

Go to the source code of this file.

Defines

#define I8   "%8d"
#define I_8   "%-8d"
#define PR(i, format, arg)
#define P1(format, arg)   PR(1,format,arg)
#define P2(format, arg)   PR(2,format,arg)
#define P3(format, arg)   PR(3,format,arg)
#define P4(format, arg)   PR(4,format,arg)
#define ERR(msg)
#define PRINTVALUE(value)
#define ETC_START(count, limit)
#define ETC_ENABLE(condition, count, limit)
#define ETC_DISABLE(count)
#define ETC(condition, count, limit)
#define BOOLSTR(x)   ((x) ? "true " : "false")

Functions

static void amesos_print_value (Int print, Int xtype, double *Xx, double *Xz, Int p, cholmod_common *Common)
static int check_common (Int print, char *name, cholmod_common *Common)
int CHOLMOD() check_common (cholmod_common *Common)
int CHOLMOD() print_common (char *name, cholmod_common *Common)
static UF_long check_sparse (Int *Wi, Int print, char *name, cholmod_sparse *A, UF_long *nnzdiag, cholmod_common *Common)
int CHOLMOD() check_sparse (cholmod_sparse *A, cholmod_common *Common)
int CHOLMOD() print_sparse (cholmod_sparse *A, char *name, cholmod_common *Common)
static int check_dense (Int print, char *name, cholmod_dense *X, cholmod_common *Common)
int CHOLMOD() check_dense (cholmod_dense *X, cholmod_common *Common)
int CHOLMOD() print_dense (cholmod_dense *X, char *name, cholmod_common *Common)
static int check_subset (Int *S, UF_long len, size_t n, Int print, char *name, cholmod_common *Common)
int CHOLMOD() check_subset (Int *Set, UF_long len, size_t n, cholmod_common *Common)
int CHOLMOD() print_subset (Int *Set, UF_long len, size_t n, char *name, cholmod_common *Common)
static int check_perm (Int *Wi, Int print, char *name, Int *Perm, size_t len, size_t n, cholmod_common *Common)
int CHOLMOD() check_perm (Int *Perm, size_t len, size_t n, cholmod_common *Common)
int CHOLMOD() print_perm (Int *Perm, size_t len, size_t n, char *name, cholmod_common *Common)
static int check_parent (Int *Parent, size_t n, Int print, char *name, cholmod_common *Common)
int CHOLMOD() check_parent (Int *Parent, size_t n, cholmod_common *Common)
int CHOLMOD() print_parent (Int *Parent, size_t n, char *name, cholmod_common *Common)
static int check_factor (Int *Wi, Int print, char *name, cholmod_factor *L, cholmod_common *Common)
int CHOLMOD() check_factor (cholmod_factor *L, cholmod_common *Common)
int CHOLMOD() print_factor (cholmod_factor *L, char *name, cholmod_common *Common)
static int check_triplet (Int print, char *name, cholmod_triplet *T, cholmod_common *Common)
int CHOLMOD() check_triplet (cholmod_triplet *T, cholmod_common *Common)
int CHOLMOD() print_triplet (cholmod_triplet *T, char *name, cholmod_common *Common)
int CHOLMOD (dump)=0
int CHOLMOD (dump_malloc)
void CHOLMOD() dump_init (char *s, cholmod_common *Common)
UF_long CHOLMOD (dump_sparse)
int CHOLMOD() dump_factor (cholmod_factor *L, char *name, cholmod_common *Common)
int CHOLMOD() dump_perm (Int *Perm, size_t len, size_t n, char *name, cholmod_common *Common)
int CHOLMOD() dump_dense (cholmod_dense *X, char *name, cholmod_common *Common)
int CHOLMOD() dump_triplet (cholmod_triplet *T, char *name, cholmod_common *Common)
int CHOLMOD() dump_subset (Int *S, size_t len, size_t n, char *name, cholmod_common *Common)
int CHOLMOD() dump_parent (Int *Parent, size_t n, char *name, cholmod_common *Common)
void CHOLMOD() dump_real (char *name, Real *X, UF_long nrow, UF_long ncol, int lower, int xentry, cholmod_common *Common)
void CHOLMOD() dump_super (UF_long s, Int *Super, Int *Lpi, Int *Ls, Int *Lpx, double *Lx, int xentry, cholmod_common *Common)
int CHOLMOD() dump_mem (char *where, UF_long should, cholmod_common *Common)
int CHOLMOD() dump_partition (UF_long n, Int *Cp, Int *Ci, Int *Cnw, Int *Part, UF_long sepsize, cholmod_common *Common)
int CHOLMOD() dump_work (int flag, int head, UF_long wsize, cholmod_common *Common)

Define Documentation

#define I8   "%8d"

Definition at line 79 of file amesos_cholmod_check.c.

#define I_8   "%-8d"

Definition at line 80 of file amesos_cholmod_check.c.

#define PR (   i,
  format,
  arg 
)
Value:
{ \
    if (print >= i && Common->print_function != NULL) \
    { \
  (Common->print_function) (format, arg) ; \
    } \
}

Definition at line 83 of file amesos_cholmod_check.c.

#define P1 (   format,
  arg 
)    PR(1,format,arg)

Definition at line 91 of file amesos_cholmod_check.c.

#define P2 (   format,
  arg 
)    PR(2,format,arg)

Definition at line 92 of file amesos_cholmod_check.c.

#define P3 (   format,
  arg 
)    PR(3,format,arg)

Definition at line 93 of file amesos_cholmod_check.c.

#define P4 (   format,
  arg 
)    PR(4,format,arg)

Definition at line 94 of file amesos_cholmod_check.c.

#define ERR (   msg)
Value:
{ \
    P1 ("\nCHOLMOD ERROR: %s: ", type) ; \
    if (name != NULL) \
    { \
  P1 ("%s", name) ; \
    } \
    P1 (": %s\n", msg) ; \
    ERROR (CHOLMOD_INVALID, "invalid") ; \
    return (FALSE) ; \
}

Definition at line 96 of file amesos_cholmod_check.c.

#define PRINTVALUE (   value)
Value:
{ \
    if (Common->precise) \
    { \
  P4 (" %23.15e", value) ; \
    } \
    else \
    { \
  P4 (" %.5g", value) ; \
    } \
}

Definition at line 109 of file amesos_cholmod_check.c.

#define ETC_START (   count,
  limit 
)
Value:
{ \
    count = (init_print == 4) ? (limit) : (-1) ; \
}

Definition at line 122 of file amesos_cholmod_check.c.

#define ETC_ENABLE (   condition,
  count,
  limit 
)
Value:
{ \
    if ((condition) && init_print == 4) \
    { \
  count = limit ; \
  print = 4 ; \
    } \
}

Definition at line 128 of file amesos_cholmod_check.c.

#define ETC_DISABLE (   count)
Value:
{ \
    if ((count >= 0) && (count-- == 0) && print == 4) \
    { \
  P4 ("%s", "    ...\n")  ; \
  print = 3 ; \
    } \
}

Definition at line 138 of file amesos_cholmod_check.c.

#define ETC (   condition,
  count,
  limit 
)
Value:
{ \
    ETC_ENABLE (condition, count, limit) ; \
    ETC_DISABLE (count) ; \
}

Definition at line 148 of file amesos_cholmod_check.c.

#define BOOLSTR (   x)    ((x) ? "true " : "false")

Definition at line 154 of file amesos_cholmod_check.c.


Function Documentation

static void amesos_print_value ( Int  print,
Int  xtype,
double *  Xx,
double *  Xz,
Int  p,
cholmod_common Common 
) [static]

Definition at line 161 of file amesos_cholmod_check.c.

static int check_common ( Int  print,
char *  name,
cholmod_common Common 
) [static]

Definition at line 198 of file amesos_cholmod_check.c.

int CHOLMOD() check_common ( cholmod_common Common)

Definition at line 571 of file amesos_cholmod_check.c.

int CHOLMOD() print_common ( char *  name,
cholmod_common Common 
)

Definition at line 580 of file amesos_cholmod_check.c.

static UF_long check_sparse ( Int *  Wi,
Int  print,
char *  name,
cholmod_sparse A,
UF_long *  nnzdiag,
cholmod_common Common 
) [static]

Definition at line 603 of file amesos_cholmod_check.c.

int CHOLMOD() check_sparse ( cholmod_sparse A,
cholmod_common Common 
)

Definition at line 853 of file amesos_cholmod_check.c.

int CHOLMOD() print_sparse ( cholmod_sparse A,
char *  name,
cholmod_common Common 
)

Definition at line 868 of file amesos_cholmod_check.c.

static int check_dense ( Int  print,
char *  name,
cholmod_dense X,
cholmod_common Common 
) [static]

Definition at line 890 of file amesos_cholmod_check.c.

int CHOLMOD() check_dense ( cholmod_dense X,
cholmod_common Common 
)

Definition at line 991 of file amesos_cholmod_check.c.

int CHOLMOD() print_dense ( cholmod_dense X,
char *  name,
cholmod_common Common 
)

Definition at line 1005 of file amesos_cholmod_check.c.

static int check_subset ( Int *  S,
UF_long  len,
size_t  n,
Int  print,
char *  name,
cholmod_common Common 
) [static]

Definition at line 1036 of file amesos_cholmod_check.c.

int CHOLMOD() check_subset ( Int *  Set,
UF_long  len,
size_t  n,
cholmod_common Common 
)

Definition at line 1111 of file amesos_cholmod_check.c.

int CHOLMOD() print_subset ( Int *  Set,
UF_long  len,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 1127 of file amesos_cholmod_check.c.

static int check_perm ( Int *  Wi,
Int  print,
char *  name,
Int *  Perm,
size_t  len,
size_t  n,
cholmod_common Common 
) [static]

Definition at line 1162 of file amesos_cholmod_check.c.

int CHOLMOD() check_perm ( Int *  Perm,
size_t  len,
size_t  n,
cholmod_common Common 
)

Definition at line 1282 of file amesos_cholmod_check.c.

int CHOLMOD() print_perm ( Int *  Perm,
size_t  len,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 1298 of file amesos_cholmod_check.c.

static int check_parent ( Int *  Parent,
size_t  n,
Int  print,
char *  name,
cholmod_common Common 
) [static]

Definition at line 1345 of file amesos_cholmod_check.c.

int CHOLMOD() check_parent ( Int *  Parent,
size_t  n,
cholmod_common Common 
)

Definition at line 1396 of file amesos_cholmod_check.c.

int CHOLMOD() print_parent ( Int *  Parent,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 1411 of file amesos_cholmod_check.c.

static int check_factor ( Int *  Wi,
Int  print,
char *  name,
cholmod_factor L,
cholmod_common Common 
) [static]

Definition at line 1431 of file amesos_cholmod_check.c.

int CHOLMOD() check_factor ( cholmod_factor L,
cholmod_common Common 
)

Definition at line 1949 of file amesos_cholmod_check.c.

int CHOLMOD() print_factor ( cholmod_factor L,
char *  name,
cholmod_common Common 
)

Definition at line 1963 of file amesos_cholmod_check.c.

static int check_triplet ( Int  print,
char *  name,
cholmod_triplet T,
cholmod_common Common 
) [static]

Definition at line 1984 of file amesos_cholmod_check.c.

int CHOLMOD() check_triplet ( cholmod_triplet T,
cholmod_common Common 
)

Definition at line 2136 of file amesos_cholmod_check.c.

int CHOLMOD() print_triplet ( cholmod_triplet T,
char *  name,
cholmod_common Common 
)

Definition at line 2150 of file amesos_cholmod_check.c.

int CHOLMOD ( dump  ) [pure virtual]
int CHOLMOD ( dump_malloc  )
void CHOLMOD() dump_init ( char *  s,
cholmod_common Common 
)

Definition at line 2181 of file amesos_cholmod_check.c.

UF_long CHOLMOD ( dump_sparse  )

Definition at line 2202 of file amesos_cholmod_check.c.

int CHOLMOD() dump_factor ( cholmod_factor L,
char *  name,
cholmod_common Common 
)

Definition at line 2233 of file amesos_cholmod_check.c.

int CHOLMOD() dump_perm ( Int *  Perm,
size_t  len,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 2261 of file amesos_cholmod_check.c.

int CHOLMOD() dump_dense ( cholmod_dense X,
char *  name,
cholmod_common Common 
)

Definition at line 2290 of file amesos_cholmod_check.c.

int CHOLMOD() dump_triplet ( cholmod_triplet T,
char *  name,
cholmod_common Common 
)

Definition at line 2311 of file amesos_cholmod_check.c.

int CHOLMOD() dump_subset ( Int *  S,
size_t  len,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 2332 of file amesos_cholmod_check.c.

int CHOLMOD() dump_parent ( Int *  Parent,
size_t  n,
char *  name,
cholmod_common Common 
)

Definition at line 2355 of file amesos_cholmod_check.c.

void CHOLMOD() dump_real ( char *  name,
Real X,
UF_long  nrow,
UF_long  ncol,
int  lower,
int  xentry,
cholmod_common Common 
)

Definition at line 2377 of file amesos_cholmod_check.c.

void CHOLMOD() dump_super ( UF_long  s,
Int *  Super,
Int *  Lpi,
Int *  Ls,
Int *  Lpx,
double *  Lx,
int  xentry,
cholmod_common Common 
)

Definition at line 2424 of file amesos_cholmod_check.c.

int CHOLMOD() dump_mem ( char *  where,
UF_long  should,
cholmod_common Common 
)

Definition at line 2469 of file amesos_cholmod_check.c.

int CHOLMOD() dump_partition ( UF_long  n,
Int *  Cp,
Int *  Ci,
Int *  Cnw,
Int *  Part,
UF_long  sepsize,
cholmod_common Common 
)

Definition at line 2493 of file amesos_cholmod_check.c.

int CHOLMOD() dump_work ( int  flag,
int  head,
UF_long  wsize,
cholmod_common Common 
)

Definition at line 2556 of file amesos_cholmod_check.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines