cholmod_internal.h File Reference

#include "cholmod_io64.h"
#include <stdio.h>
#include <stddef.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <stdlib.h>
#include "UFconfig.h"
#include "cholmod_complexity.h"
#include <assert.h>
#include "cholmod_config.h"
#include "cholmod_core.h"
#include "cholmod_check.h"
#include "cholmod_cholesky.h"
#include "cholmod_matrixops.h"
#include "cholmod_modify.h"
#include "cholmod_partition.h"
#include "cholmod_supernodal.h"
Include dependency graph for cholmod_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ASSERT(expression)   (assert (expression))
#define BOOLEAN(x)   ((x) ? TRUE : FALSE)
#define CHOLMOD(name)   cholmod_ ## name
#define DEBUG(statement)   statement
#define DEBUG_INIT(s, Common)   { CHOLMOD(dump_init)(s, Common) ; }
#define DINT
#define DOUBLE
#define DTYPE   CHOLMOD_DOUBLE
#define EMPTY   (-1)
#define ERROR(status, msg)   CHOLMOD(error) (status, __FILE__, __LINE__, msg, Common)
#define FALSE   0
#define FLIP(i)   (-(i)-2)
#define HUGE_DOUBLE   1e308
#define ID   "%d"
#define IMPLIES(p, q)   (!(p) || (q))
#define Int   int
#define INT
#define Int_max   INT_MAX
#define IS_GT_ZERO(x)   CHOLMOD_IS_GT_ZERO(x)
#define IS_LE_ZERO(x)   CHOLMOD_IS_LE_ZERO(x)
#define IS_LT_ZERO(x)   CHOLMOD_IS_LT_ZERO(x)
#define IS_NAN(x)   CHOLMOD_IS_NAN(x)
#define IS_NONZERO(x)   CHOLMOD_IS_NONZERO(x)
#define IS_ZERO(x)   CHOLMOD_IS_ZERO(x)
#define ITYPE   CHOLMOD_INT
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define MAX3(a, b, c)   (((a) > (b)) ? (MAX (a,c)) : (MAX (b,c)))
#define MAX4(a, b, c, d)   (((a) > (b)) ? (MAX3 (a,c,d)) : (MAX3 (b,c,d)))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define PRINT0(params)   PRK (0, params)
#define PRINT1(params)   PRK (1, params)
#define PRINT2(params)   PRK (2, params)
#define PRINT3(params)   PRK (3, params)
#define PRINTM(params)
#define PRK(k, params)
#define Real   double
#define RETURN_IF_NULL(A, result)
#define RETURN_IF_NULL_COMMON(result)
#define ROUNDUP(x, s)   ((s) * (((x) + ((s) - 1)) / (s)))
#define SIGN(x)   (((x) < 0) ? (-1) : (((x) > 0) ? 1 : 0))
#define Size_max   ((size_t) (-1))
#define TRUE   1
#define UNFLIP(i)   (((i) < EMPTY) ? FLIP (i) : (i))

Functions

size_t cholmod_add_size_t (size_t a, size_t b, int *ok)
int cholmod_dump_dense (cholmod_dense *, const char *, cholmod_common *)
int cholmod_dump_factor (cholmod_factor *, const char *, cholmod_common *)
void cholmod_dump_init (const char *, cholmod_common *)
int cholmod_dump_mem (const char *, UF_long, cholmod_common *)
int cholmod_dump_parent (int *, size_t, const char *, cholmod_common *)
int cholmod_dump_partition (UF_long, int *, int *, int *, int *, UF_long, cholmod_common *)
int cholmod_dump_perm (int *, size_t, size_t, const char *, cholmod_common *)
void cholmod_dump_real (const char *, Real *, UF_long, UF_long, int, int, cholmod_common *)
UF_long cholmod_dump_sparse (cholmod_sparse *, const char *, cholmod_common *)
int cholmod_dump_subset (int *, size_t, size_t, const char *, cholmod_common *)
void cholmod_dump_super (UF_long, int *, int *, int *, int *, double *, int, cholmod_common *)
int cholmod_dump_triplet (cholmod_triplet *, const char *, cholmod_common *)
int cholmod_dump_work (int, int, UF_long, cholmod_common *)
size_t cholmod_l_add_size_t (size_t a, size_t b, int *ok)
int cholmod_l_dump_dense (cholmod_dense *, const char *, cholmod_common *)
int cholmod_l_dump_factor (cholmod_factor *, const char *, cholmod_common *)
void cholmod_l_dump_init (const char *, cholmod_common *)
int cholmod_l_dump_mem (const char *, UF_long, cholmod_common *)
int cholmod_l_dump_parent (UF_long *, size_t, const char *, cholmod_common *)
int cholmod_l_dump_partition (UF_long, UF_long *, UF_long *, UF_long *, UF_long *, UF_long, cholmod_common *)
int cholmod_l_dump_perm (UF_long *, size_t, size_t, const char *, cholmod_common *)
void cholmod_l_dump_real (const char *, Real *, UF_long, UF_long, int, int, cholmod_common *)
UF_long cholmod_l_dump_sparse (cholmod_sparse *, const char *, cholmod_common *)
int cholmod_l_dump_subset (UF_long *, size_t, size_t, const char *, cholmod_common *)
void cholmod_l_dump_super (UF_long, UF_long *, UF_long *, UF_long *, UF_long *, double *, int, cholmod_common *)
int cholmod_l_dump_triplet (cholmod_triplet *, const char *, cholmod_common *)
int cholmod_l_dump_work (int, int, UF_long, cholmod_common *)
size_t cholmod_l_mult_size_t (size_t a, size_t k, int *ok)
size_t cholmod_mult_size_t (size_t a, size_t k, int *ok)

Variables

EXTERN int cholmod_dump
EXTERN int cholmod_dump_malloc
EXTERN int cholmod_l_dump
EXTERN int cholmod_l_dump_malloc

Define Documentation

#define ASSERT ( expression   )     (assert (expression))

Definition at line 360 of file cholmod_internal.h.

#define BOOLEAN (  )     ((x) ? TRUE : FALSE)

Definition at line 83 of file cholmod_internal.h.

#define CHOLMOD ( name   )     cholmod_ ## name

Definition at line 276 of file cholmod_internal.h.

#define DEBUG ( statement   )     statement

Definition at line 383 of file cholmod_internal.h.

#define DEBUG_INIT ( s,
Common   )     { CHOLMOD(dump_init)(s, Common) ; }

Definition at line 359 of file cholmod_internal.h.

#define DINT

Definition at line 268 of file cholmod_internal.h.

#define DOUBLE

Definition at line 271 of file cholmod_internal.h.

#define DTYPE   CHOLMOD_DOUBLE

Definition at line 278 of file cholmod_internal.h.

#define EMPTY   (-1)

Definition at line 94 of file cholmod_internal.h.

#define ERROR ( status,
msg   )     CHOLMOD(error) (status, __FILE__, __LINE__, msg, Common)

Definition at line 112 of file cholmod_internal.h.

#define FALSE   0

Definition at line 82 of file cholmod_internal.h.

#define FLIP (  )     (-(i)-2)

Definition at line 95 of file cholmod_internal.h.

#define HUGE_DOUBLE   1e308

Definition at line 155 of file cholmod_internal.h.

#define ID   "%d"

Definition at line 279 of file cholmod_internal.h.

#define IMPLIES ( p,
 )     (!(p) || (q))

Definition at line 103 of file cholmod_internal.h.

#define Int   int

Definition at line 274 of file cholmod_internal.h.

#define INT

Definition at line 270 of file cholmod_internal.h.

#define Int_max   INT_MAX

Definition at line 275 of file cholmod_internal.h.

#define IS_GT_ZERO (  )     CHOLMOD_IS_GT_ZERO(x)

Definition at line 147 of file cholmod_internal.h.

#define IS_LE_ZERO (  )     CHOLMOD_IS_LE_ZERO(x)

Definition at line 148 of file cholmod_internal.h.

#define IS_LT_ZERO (  )     CHOLMOD_IS_LT_ZERO(x)

Definition at line 146 of file cholmod_internal.h.

#define IS_NAN (  )     CHOLMOD_IS_NAN(x)

Definition at line 143 of file cholmod_internal.h.

#define IS_NONZERO (  )     CHOLMOD_IS_NONZERO(x)

Definition at line 145 of file cholmod_internal.h.

#define IS_ZERO (  )     CHOLMOD_IS_ZERO(x)

Definition at line 144 of file cholmod_internal.h.

#define ITYPE   CHOLMOD_INT

Definition at line 277 of file cholmod_internal.h.

#define MAX ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 99 of file cholmod_internal.h.

#define MAX3 ( a,
b,
 )     (((a) > (b)) ? (MAX (a,c)) : (MAX (b,c)))

Definition at line 100 of file cholmod_internal.h.

#define MAX4 ( a,
b,
c,
 )     (((a) > (b)) ? (MAX3 (a,c,d)) : (MAX3 (b,c,d)))

Definition at line 101 of file cholmod_internal.h.

#define MIN ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 102 of file cholmod_internal.h.

#define PRINT0 ( params   )     PRK (0, params)

Definition at line 370 of file cholmod_internal.h.

#define PRINT1 ( params   )     PRK (1, params)

Definition at line 371 of file cholmod_internal.h.

#define PRINT2 ( params   )     PRK (2, params)

Definition at line 372 of file cholmod_internal.h.

#define PRINT3 ( params   )     PRK (3, params)

Definition at line 373 of file cholmod_internal.h.

#define PRINTM ( params   ) 
Value:
{ \
    if (CHOLMOD(dump_malloc) > 0) \
    { \
        printf params ; \
    } \
}

Definition at line 375 of file cholmod_internal.h.

#define PRK ( k,
params   ) 
Value:
{ \
    if (CHOLMOD(dump) >= (k) && Common->print_function != NULL) \
    { \
        (Common->print_function) params ; \
    } \
}

Definition at line 362 of file cholmod_internal.h.

#define Real   double

Definition at line 273 of file cholmod_internal.h.

#define RETURN_IF_NULL ( A,
result   ) 
Value:
{ \
    if ((A) == NULL) \
    { \
        if (Common->status != CHOLMOD_OUT_OF_MEMORY) \
        { \
            ERROR (CHOLMOD_INVALID, "argument missing") ; \
        } \
        return (result) ; \
    } \
}

Definition at line 117 of file cholmod_internal.h.

#define RETURN_IF_NULL_COMMON ( result   ) 
Value:
{ \
    if (Common == NULL) \
    { \
        return (result) ; \
    } \
    if (Common->itype != ITYPE || Common->dtype != DTYPE) \
    { \
        Common->status = CHOLMOD_INVALID ; \
        return (result) ; \
    } \
}

Definition at line 130 of file cholmod_internal.h.

#define ROUNDUP ( x,
 )     ((s) * (((x) + ((s) - 1)) / (s)))

Definition at line 110 of file cholmod_internal.h.

#define SIGN (  )     (((x) < 0) ? (-1) : (((x) > 0) ? 1 : 0))

Definition at line 107 of file cholmod_internal.h.

#define Size_max   ((size_t) (-1))

Definition at line 210 of file cholmod_internal.h.

#define TRUE   1

Definition at line 81 of file cholmod_internal.h.

#define UNFLIP (  )     (((i) < EMPTY) ? FLIP (i) : (i))

Definition at line 96 of file cholmod_internal.h.


Function Documentation

size_t cholmod_add_size_t ( size_t  a,
size_t  b,
int *  ok 
)
int cholmod_dump_dense ( cholmod_dense ,
const char *  ,
cholmod_common  
)
int cholmod_dump_factor ( cholmod_factor ,
const char *  ,
cholmod_common  
)
void cholmod_dump_init ( const char *  ,
cholmod_common  
)
int cholmod_dump_mem ( const char *  ,
UF_long  ,
cholmod_common  
)
int cholmod_dump_parent ( int *  ,
size_t  ,
const char *  ,
cholmod_common  
)
int cholmod_dump_partition ( UF_long  ,
int *  ,
int *  ,
int *  ,
int *  ,
UF_long  ,
cholmod_common  
)
int cholmod_dump_perm ( int *  ,
size_t  ,
size_t  ,
const char *  ,
cholmod_common  
)
void cholmod_dump_real ( const char *  ,
Real *  ,
UF_long  ,
UF_long  ,
int  ,
int  ,
cholmod_common  
)
UF_long cholmod_dump_sparse ( cholmod_sparse ,
const char *  ,
cholmod_common  
)
int cholmod_dump_subset ( int *  ,
size_t  ,
size_t  ,
const char *  ,
cholmod_common  
)
void cholmod_dump_super ( UF_long  ,
int *  ,
int *  ,
int *  ,
int *  ,
double *  ,
int  ,
cholmod_common  
)
int cholmod_dump_triplet ( cholmod_triplet ,
const char *  ,
cholmod_common  
)
int cholmod_dump_work ( int  ,
int  ,
UF_long  ,
cholmod_common  
)
size_t cholmod_l_add_size_t ( size_t  a,
size_t  b,
int *  ok 
)
int cholmod_l_dump_dense ( cholmod_dense ,
const char *  ,
cholmod_common  
)
int cholmod_l_dump_factor ( cholmod_factor ,
const char *  ,
cholmod_common  
)
void cholmod_l_dump_init ( const char *  ,
cholmod_common  
)
int cholmod_l_dump_mem ( const char *  ,
UF_long  ,
cholmod_common  
)
int cholmod_l_dump_parent ( UF_long *  ,
size_t  ,
const char *  ,
cholmod_common  
)
int cholmod_l_dump_partition ( UF_long  ,
UF_long *  ,
UF_long *  ,
UF_long *  ,
UF_long *  ,
UF_long  ,
cholmod_common  
)
int cholmod_l_dump_perm ( UF_long *  ,
size_t  ,
size_t  ,
const char *  ,
cholmod_common  
)
void cholmod_l_dump_real ( const char *  ,
Real *  ,
UF_long  ,
UF_long  ,
int  ,
int  ,
cholmod_common  
)
UF_long cholmod_l_dump_sparse ( cholmod_sparse ,
const char *  ,
cholmod_common  
)
int cholmod_l_dump_subset ( UF_long *  ,
size_t  ,
size_t  ,
const char *  ,
cholmod_common  
)
void cholmod_l_dump_super ( UF_long  ,
UF_long *  ,
UF_long *  ,
UF_long *  ,
UF_long *  ,
double *  ,
int  ,
cholmod_common  
)
int cholmod_l_dump_triplet ( cholmod_triplet ,
const char *  ,
cholmod_common  
)
int cholmod_l_dump_work ( int  ,
int  ,
UF_long  ,
cholmod_common  
)
size_t cholmod_l_mult_size_t ( size_t  a,
size_t  k,
int *  ok 
)
size_t cholmod_mult_size_t ( size_t  a,
size_t  k,
int *  ok 
)

Variable Documentation

EXTERN int cholmod_dump
EXTERN int cholmod_dump_malloc

Definition at line 317 of file cholmod_internal.h.

EXTERN int cholmod_l_dump

Definition at line 337 of file cholmod_internal.h.

Definition at line 338 of file cholmod_internal.h.

 All Classes Files Functions Variables Typedefs Defines


suitesparse
Author(s): Tim Davis
autogenerated on Fri Jan 11 09:32:22 2013