Ifpack_IKLU_Utils.h File Reference

#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
Include dependency graph for Ifpack_IKLU_Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  row_matrix
struct  cs_symbolic
struct  csr_numeric
struct  csr_dmperm_results

Defines

#define CS_MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define CS_MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define CS_FLIP(i)   (-(i)-2)
#define CS_UNFLIP(i)   (((i) < 0) ? CS_FLIP(i) : (i))
#define CS_MARKED(w, j)   (w [j] < 0)
#define CS_MARK(w, j)   { w [j] = CS_FLIP (w [j]) ; }
#define CS_CSC(A)   (A && (A->nz == -1))
#define CS_TRIPLET(A)   (A && (A->nz >= 0))

Typedefs

typedef struct row_matrix csr
typedef struct cs_symbolic css
typedef struct csr_numeric csrn
typedef struct csr_dmperm_results csrd

Functions

csrcsr_add (const csr *A, const csr *B, double alpha, double beta)
csrcsr_multiply (const csr *A, const csr *B)
double csr_norm (const csr *A)
int csr_print (const csr *A, int brief)
csrcsr_transpose (const csr *A, int values)
void * csr_realloc (void *p, int n, size_t size, int *ok)
csrcsr_spalloc (int m, int n, int nzmax, int values, int triplet)
csrcsr_spfree (csr *A)
int csr_sprealloc (csr *A, int nzmax)
int * csr_amd (int order, const csr *A)
int csr_droptol (csr *A, double tol)
int csr_dropzeros (csr *A)
int csr_lsolve (const csr *L, double *x)
csrncsr_lu (const csr *A, const css *S, double tol)
csrcsr_permute (const csr *A, const int *pinv, const int *q, int values)
csscsr_sqr (int order, const csr *A)
int csr_usolve (const csr *U, double *x)
csscsr_sfree (css *S)
csrdcsr_dfree (csrd *D)
csrncsr_nfree (csrn *N)
double csr_cumsum (int *p, int *c, int n)
int csr_dfs (int j, csr *G, int top, int *xi, int *pstack, const int *pinv)
int csr_reach (csr *G, const csr *B, int k, int *xi, const int *pinv)
int csr_scatter (const csr *A, int j, double beta, int *w, double *x, int mark, csr *C, int nz)
csrdcsr_scc (csr *A)
int csr_spsolve (csr *G, const csr *B, int k, int *xi, double *x, const int *pinv, int up)
int csr_tdfs (int j, int k, int *head, const int *next, int *post, int *stack)
csrdcsr_dalloc (int m, int n)
csrdcsr_ddone (csrd *D, csr *C, void *w, int ok)
csrcsr_done (csr *C, void *w, void *x, int ok)
int * csr_idone (int *p, csr *C, void *w, int ok)
csrncsr_ndone (csrn *N, csr *C, void *w, void *x, int ok)
int csr_fkeep (csr *A, int(*fkeep)(int, int, double, void *), void *other)

Define Documentation

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

Definition at line 142 of file Ifpack_IKLU_Utils.h.

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

Definition at line 143 of file Ifpack_IKLU_Utils.h.

#define CS_FLIP (  )     (-(i)-2)

Definition at line 144 of file Ifpack_IKLU_Utils.h.

#define CS_UNFLIP (  )     (((i) < 0) ? CS_FLIP(i) : (i))

Definition at line 145 of file Ifpack_IKLU_Utils.h.

#define CS_MARKED ( w,
 )     (w [j] < 0)

Definition at line 146 of file Ifpack_IKLU_Utils.h.

#define CS_MARK ( w,
 )     { w [j] = CS_FLIP (w [j]) ; }

Definition at line 147 of file Ifpack_IKLU_Utils.h.

#define CS_CSC ( A   )     (A && (A->nz == -1))

Definition at line 148 of file Ifpack_IKLU_Utils.h.

#define CS_TRIPLET ( A   )     (A && (A->nz >= 0))

Definition at line 149 of file Ifpack_IKLU_Utils.h.


Typedef Documentation

typedef struct row_matrix csr
typedef struct cs_symbolic css
typedef struct csr_numeric csrn
typedef struct csr_dmperm_results csrd

Function Documentation

csr* csr_add ( const csr A,
const csr B,
double  alpha,
double  beta 
)

Definition at line 186 of file Ifpack_IKLU_Utils.cpp.

csr* csr_multiply ( const csr A,
const csr B 
)

Definition at line 239 of file Ifpack_IKLU_Utils.cpp.

double csr_norm ( const csr A  ) 

Definition at line 973 of file Ifpack_IKLU_Utils.cpp.

int csr_print ( const csr A,
int  brief 
)

Definition at line 926 of file Ifpack_IKLU_Utils.cpp.

csr* csr_transpose ( const csr A,
int  values 
)

Definition at line 214 of file Ifpack_IKLU_Utils.cpp.

void* csr_realloc ( void *  p,
int  n,
size_t  size,
int *  ok 
)

Definition at line 67 of file Ifpack_IKLU_Utils.cpp.

csr* csr_spalloc ( int  m,
int  n,
int  nzmax,
int  values,
int  triplet 
)

Definition at line 38 of file Ifpack_IKLU_Utils.cpp.

csr* csr_spfree ( csr A  ) 

Definition at line 76 of file Ifpack_IKLU_Utils.cpp.

int csr_sprealloc ( csr A,
int  nzmax 
)

Definition at line 53 of file Ifpack_IKLU_Utils.cpp.

int* csr_amd ( int  order,
const csr A 
)

Definition at line 570 of file Ifpack_IKLU_Utils.cpp.

int csr_droptol ( csr A,
double  tol 
)
int csr_dropzeros ( csr A  ) 
int csr_lsolve ( const csr L,
double *  x 
)
csrn* csr_lu ( const csr A,
const css S,
double  tol 
)

Definition at line 390 of file Ifpack_IKLU_Utils.cpp.

csr* csr_permute ( const csr A,
const int *  pinv,
const int *  q,
int  values 
)
css* csr_sqr ( int  order,
const csr A 
)

Definition at line 280 of file Ifpack_IKLU_Utils.cpp.

int csr_usolve ( const csr U,
double *  x 
)
css* csr_sfree ( css S  ) 

Definition at line 87 of file Ifpack_IKLU_Utils.cpp.

csrd* csr_dfree ( csrd D  ) 
csrn* csr_nfree ( csrn N  ) 

Definition at line 99 of file Ifpack_IKLU_Utils.cpp.

double csr_cumsum ( int *  p,
int *  c,
int  n 
)

Definition at line 147 of file Ifpack_IKLU_Utils.cpp.

int csr_dfs ( int  j,
csr G,
int  top,
int *  xi,
int *  pstack,
const int *  pinv 
)

Definition at line 322 of file Ifpack_IKLU_Utils.cpp.

int csr_reach ( csr G,
const csr B,
int  k,
int *  xi,
const int *  pinv 
)

Definition at line 304 of file Ifpack_IKLU_Utils.cpp.

int csr_scatter ( const csr A,
int  j,
double  beta,
int *  w,
double *  x,
int  mark,
csr C,
int  nz 
)

Definition at line 164 of file Ifpack_IKLU_Utils.cpp.

csrd* csr_scc ( csr A  ) 
int csr_spsolve ( csr G,
const csr B,
int  k,
int *  xi,
double *  x,
const int *  pinv,
int  up 
)

Definition at line 509 of file Ifpack_IKLU_Utils.cpp.

int csr_tdfs ( int  j,
int  k,
int *  head,
const int *  next,
int *  post,
int *  stack 
)

Definition at line 358 of file Ifpack_IKLU_Utils.cpp.

csrd* csr_dalloc ( int  m,
int  n 
)
csrd* csr_ddone ( csrd D,
csr C,
void *  w,
int  ok 
)
csr* csr_done ( csr C,
void *  w,
void *  x,
int  ok 
)

Definition at line 112 of file Ifpack_IKLU_Utils.cpp.

int* csr_idone ( int *  p,
csr C,
void *  w,
int  ok 
)

Definition at line 129 of file Ifpack_IKLU_Utils.cpp.

csrn* csr_ndone ( csrn N,
csr C,
void *  w,
void *  x,
int  ok 
)

Definition at line 120 of file Ifpack_IKLU_Utils.cpp.

int csr_fkeep ( csr A,
int(*)(int, int, double, void *)  fkeep,
void *  other 
)

Definition at line 988 of file Ifpack_IKLU_Utils.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:05:38 2011 for Ifpack Package Browser (Single Doxygen Collection) by  doxygen 1.6.3