Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
amesos_klu_internal.h File Reference
#include "amesos_klu_decl.h"
#include "amesos_btf_decl.h"
#include "amesos_klu_version.h"
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for amesos_klu_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define ASSERT(a)
 
#define SCALAR_IS_NAN(x)   ((x) != (x))
 
#define INT_OVERFLOW(x)
 
#define PRINTF(s)
 
#define TRUE   1
 
#define FALSE   0
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define EMPTY   (-1)
 
#define FLIP(i)   (-(i)-2)
 
#define UNFLIP(i)   (((i) < EMPTY) ? FLIP (i) : (i))
 

Functions

size_t KLU_kernel (Int n, Int Ap[], Int Ai[], Entry Ax[], Int Q[], size_t lusize, Int Pinv[], Int P[], Unit **p_LU, Entry Udiag[], Int Llen[], Int Ulen[], Int Lip[], Int Uip[], Int *lnz, Int *unz, Entry X[], Int Stack[], Int Flag[], Int adj_pos[], Int Lpend[], Int k1, Int PSinv[], double Rs[], Int Offp[], Int Offi[], Entry Offx[], KLU_common *Common)
 
size_t KLU_kernel_factor (Int n, Int Ap[], Int Ai[], Entry Ax[], Int Q[], double Lsize, Unit **p_LU, Entry Udiag[], Int Llen[], Int Ulen[], Int Lip[], Int Uip[], Int P[], Int *lnz, Int *unz, Entry *X, Int *Work, Int k1, Int PSinv[], double Rs[], Int Offp[], Int Offi[], Entry Offx[], KLU_common *Common)
 
void KLU_lsolve (Int n, Int Lp[], Int Li[], Unit LU[], Int nrhs, Entry X[])
 
void KLU_ltsolve (Int n, Int Lp[], Int Li[], Unit LU[], Int nrhs, Entry X[])
 
void KLU_usolve (Int n, Int Up[], Int Ui[], Unit LU[], Entry Udiag[], Int nrhs, Entry X[])
 
void KLU_utsolve (Int n, Int Up[], Int Ui[], Unit LU[], Entry Udiag[], Int nrhs, Entry X[])
 
Int KLU_valid (Int n, Int Ap[], Int Ai[], Entry Ax[])
 
Int KLU_valid_LU (Int n, Int flag_test_start_ptr, Int Xip[], Int Xlen[], Unit LU[])
 
size_t KLU_add_size_t (size_t a, size_t b, Int *ok)
 
size_t KLU_mult_size_t (size_t a, size_t k, Int *ok)
 
KLU_symbolicKLU_alloc_symbolic (Int n, Int *Ap, Int *Ai, KLU_common *Common)
 

Macro Definition Documentation

#define NDEBUG

Definition at line 18 of file amesos_klu_internal.h.

#define ASSERT (   a)

Definition at line 44 of file amesos_klu_internal.h.

#define SCALAR_IS_NAN (   x)    ((x) != (x))

Definition at line 47 of file amesos_klu_internal.h.

#define INT_OVERFLOW (   x)
Value:
((!((x) * (1.0+1e-8) <= (double) INT_MAX)) \
|| SCALAR_IS_NAN (x))
#define SCALAR_IS_NAN(x)

Definition at line 50 of file amesos_klu_internal.h.

#define PRINTF (   s)

Definition at line 63 of file amesos_klu_internal.h.

#define TRUE   1

Definition at line 66 of file amesos_klu_internal.h.

#define FALSE   0

Definition at line 67 of file amesos_klu_internal.h.

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

Definition at line 68 of file amesos_klu_internal.h.

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

Definition at line 69 of file amesos_klu_internal.h.

#define EMPTY   (-1)

Definition at line 75 of file amesos_klu_internal.h.

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

Definition at line 76 of file amesos_klu_internal.h.

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

Definition at line 77 of file amesos_klu_internal.h.

Function Documentation

size_t KLU_kernel ( Int  n,
Int  Ap[],
Int  Ai[],
Entry  Ax[],
Int  Q[],
size_t  lusize,
Int  Pinv[],
Int  P[],
Unit **  p_LU,
Entry  Udiag[],
Int  Llen[],
Int  Ulen[],
Int  Lip[],
Int  Uip[],
Int lnz,
Int unz,
Entry  X[],
Int  Stack[],
Int  Flag[],
Int  adj_pos[],
Int  Lpend[],
Int  k1,
Int  PSinv[],
double  Rs[],
Int  Offp[],
Int  Offi[],
Entry  Offx[],
KLU_common Common 
)

Definition at line 627 of file amesos_klu_kernel.c.

size_t KLU_kernel_factor ( Int  n,
Int  Ap[],
Int  Ai[],
Entry  Ax[],
Int  Q[],
double  Lsize,
Unit **  p_LU,
Entry  Udiag[],
Int  Llen[],
Int  Ulen[],
Int  Lip[],
Int  Uip[],
Int  P[],
Int lnz,
Int unz,
Entry X,
Int Work,
Int  k1,
Int  PSinv[],
double  Rs[],
Int  Offp[],
Int  Offi[],
Entry  Offx[],
KLU_common Common 
)

Definition at line 64 of file amesos_klu_impl.c.

void KLU_lsolve ( Int  n,
Int  Lp[],
Int  Li[],
Unit  LU[],
Int  nrhs,
Entry  X[] 
)

Definition at line 202 of file amesos_klu_impl.c.

void KLU_ltsolve ( Int  n,
Int  Lp[],
Int  Li[],
Unit  LU[],
Int  nrhs,
Entry  X[] 
)

Definition at line 447 of file amesos_klu_impl.c.

void KLU_usolve ( Int  n,
Int  Up[],
Int  Ui[],
Unit  LU[],
Entry  Udiag[],
Int  nrhs,
Entry  X[] 
)

Definition at line 309 of file amesos_klu_impl.c.

void KLU_utsolve ( Int  n,
Int  Up[],
Int  Ui[],
Unit  LU[],
Entry  Udiag[],
Int  nrhs,
Entry  X[] 
)

Definition at line 604 of file amesos_klu_impl.c.

Int KLU_valid ( Int  n,
Int  Ap[],
Int  Ai[],
Entry  Ax[] 
)

Definition at line 32 of file amesos_klu_dump.c.

Int KLU_valid_LU ( Int  n,
Int  flag_test_start_ptr,
Int  Xip[],
Int  Xlen[],
Unit  LU[] 
)

Definition at line 90 of file amesos_klu_dump.c.

size_t KLU_add_size_t ( size_t  a,
size_t  b,
Int ok 
)

Definition at line 23 of file amesos_klu_l_memory.c.

size_t KLU_mult_size_t ( size_t  a,
size_t  k,
Int ok 
)

Definition at line 35 of file amesos_klu_l_memory.c.

KLU_symbolic* KLU_alloc_symbolic ( Int  n,
Int Ap,
Int Ai,
KLU_common Common 
)

Definition at line 18 of file amesos_klu_analyze_given.c.