Amesos Package Browser (Single Doxygen Collection) Development
Defines | Functions
amesos_cholmod_internal.h File Reference
#include "amesos_cholmod_io64.h"
#include <stdio.h>
#include <stddef.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <stdlib.h>
#include "amesos_UFconfig.h"
#include "amesos_cholmod_complexity.h"
#include "amesos_cholmod_blas.h"
Include dependency graph for amesos_cholmod_internal.h:

Go to the source code of this file.

Defines

#define NDEBUG
#define TRUE   1
#define FALSE   0
#define BOOLEAN(x)   ((x) ? TRUE : FALSE)
#define NULL   ((void *) 0)
#define EMPTY   (-1)
#define FLIP(i)   (-(i)-2)
#define UNFLIP(i)   (((i) < EMPTY) ? FLIP (i) : (i))
#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 IMPLIES(p, q)   (!(p) || (q))
#define SIGN(x)   (((x) < 0) ? (-1) : (((x) > 0) ? 1 : 0))
#define ROUNDUP(x, s)   ((s) * (((x) + ((s) - 1)) / (s)))
#define ERROR(status, msg)   CHOLMOD(error) (status, __FILE__, __LINE__, msg, Common)
#define RETURN_IF_NULL(A, result)
#define RETURN_IF_NULL_COMMON(result)
#define IS_NAN(x)   CHOLMOD_IS_NAN(x)
#define IS_ZERO(x)   CHOLMOD_IS_ZERO(x)
#define IS_NONZERO(x)   CHOLMOD_IS_NONZERO(x)
#define IS_LT_ZERO(x)   CHOLMOD_IS_LT_ZERO(x)
#define IS_GT_ZERO(x)   CHOLMOD_IS_GT_ZERO(x)
#define IS_LE_ZERO(x)   CHOLMOD_IS_LE_ZERO(x)
#define HUGE_DOUBLE   1e308
#define Size_max   ((size_t) (-1))
#define DINT
#define INT
#define DOUBLE
#define Real   double
#define Int   int
#define Int_max   INT_MAX
#define CHOLMOD(name)   amesos_cholmod_ ## name
#define ITYPE   CHOLMOD_INT
#define DTYPE   CHOLMOD_DOUBLE
#define ID   "%d"
#define PRK(k, params)
#define DEBUG_INIT(s)
#define PK_DEBUG_INIT(s, Common)
#define PRINT0(params)
#define PRINT1(params)
#define PRINT2(params)
#define PRINT3(params)
#define PRINTM(params)
#define ASSERT(expression)
#define DEBUG(statement)

Functions

size_t amesos_cholmod_add_size_t (size_t a, size_t b, int *ok)
size_t amesos_cholmod_mult_size_t (size_t a, size_t k, int *ok)
size_t amesos_cholmod_l_add_size_t (size_t a, size_t b, int *ok)
size_t amesos_cholmod_l_mult_size_t (size_t a, size_t k, int *ok)

Define Documentation

#define NDEBUG

Definition at line 53 of file amesos_cholmod_internal.h.

#define TRUE   1

Definition at line 77 of file amesos_cholmod_internal.h.

#define FALSE   0

Definition at line 78 of file amesos_cholmod_internal.h.

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

Definition at line 79 of file amesos_cholmod_internal.h.

#define NULL   ((void *) 0)

Definition at line 83 of file amesos_cholmod_internal.h.

#define EMPTY   (-1)

Definition at line 90 of file amesos_cholmod_internal.h.

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

Definition at line 91 of file amesos_cholmod_internal.h.

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

Definition at line 92 of file amesos_cholmod_internal.h.

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

Definition at line 95 of file amesos_cholmod_internal.h.

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

Definition at line 96 of file amesos_cholmod_internal.h.

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

Definition at line 97 of file amesos_cholmod_internal.h.

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

Definition at line 98 of file amesos_cholmod_internal.h.

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

Definition at line 99 of file amesos_cholmod_internal.h.

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

Definition at line 103 of file amesos_cholmod_internal.h.

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

Definition at line 106 of file amesos_cholmod_internal.h.

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

Definition at line 108 of file amesos_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 113 of file amesos_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 126 of file amesos_cholmod_internal.h.

#define IS_NAN (   x)    CHOLMOD_IS_NAN(x)

Definition at line 139 of file amesos_cholmod_internal.h.

#define IS_ZERO (   x)    CHOLMOD_IS_ZERO(x)

Definition at line 140 of file amesos_cholmod_internal.h.

#define IS_NONZERO (   x)    CHOLMOD_IS_NONZERO(x)

Definition at line 141 of file amesos_cholmod_internal.h.

#define IS_LT_ZERO (   x)    CHOLMOD_IS_LT_ZERO(x)

Definition at line 142 of file amesos_cholmod_internal.h.

#define IS_GT_ZERO (   x)    CHOLMOD_IS_GT_ZERO(x)

Definition at line 143 of file amesos_cholmod_internal.h.

#define IS_LE_ZERO (   x)    CHOLMOD_IS_LE_ZERO(x)

Definition at line 144 of file amesos_cholmod_internal.h.

#define HUGE_DOUBLE   1e308

Definition at line 151 of file amesos_cholmod_internal.h.

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

Definition at line 206 of file amesos_cholmod_internal.h.

#define DINT

Definition at line 264 of file amesos_cholmod_internal.h.

#define INT

Definition at line 266 of file amesos_cholmod_internal.h.

#define DOUBLE

Definition at line 267 of file amesos_cholmod_internal.h.

#define Real   double

Definition at line 269 of file amesos_cholmod_internal.h.

#define Int   int

Definition at line 270 of file amesos_cholmod_internal.h.

#define Int_max   INT_MAX

Definition at line 271 of file amesos_cholmod_internal.h.

#define CHOLMOD (   name)    amesos_cholmod_ ## name

Definition at line 272 of file amesos_cholmod_internal.h.

#define ITYPE   CHOLMOD_INT

Definition at line 273 of file amesos_cholmod_internal.h.

#define DTYPE   CHOLMOD_DOUBLE

Definition at line 274 of file amesos_cholmod_internal.h.

#define ID   "%d"

Definition at line 275 of file amesos_cholmod_internal.h.

#define PRK (   k,
  params 
)

Definition at line 376 of file amesos_cholmod_internal.h.

#define DEBUG_INIT (   s)

Definition at line 377 of file amesos_cholmod_internal.h.

#define PK_DEBUG_INIT (   s,
  Common 
)

Definition at line 378 of file amesos_cholmod_internal.h.

#define PRINT0 (   params)

Definition at line 379 of file amesos_cholmod_internal.h.

#define PRINT1 (   params)

Definition at line 380 of file amesos_cholmod_internal.h.

#define PRINT2 (   params)

Definition at line 381 of file amesos_cholmod_internal.h.

#define PRINT3 (   params)

Definition at line 382 of file amesos_cholmod_internal.h.

#define PRINTM (   params)

Definition at line 383 of file amesos_cholmod_internal.h.

#define ASSERT (   expression)

Definition at line 384 of file amesos_cholmod_internal.h.

#define DEBUG (   statement)

Definition at line 385 of file amesos_cholmod_internal.h.


Function Documentation

size_t amesos_cholmod_add_size_t ( size_t  a,
size_t  b,
int *  ok 
)
size_t amesos_cholmod_mult_size_t ( size_t  a,
size_t  k,
int *  ok 
)
size_t amesos_cholmod_l_add_size_t ( size_t  a,
size_t  b,
int *  ok 
)
size_t amesos_cholmod_l_mult_size_t ( size_t  a,
size_t  k,
int *  ok 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines