util_dist.h File Reference

Header for utilities. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "superlu_enum_consts.h"

Go to the source code of this file.

Classes

struct  SuperLUStat_t
 
struct  e_node
 Headers for 4 types of dynamatically managed memory. More...
 
struct  LU_stack_t
 

Macros

#define USER_ABORT(msg)   superlu_abort_and_exit_dist(msg)
 
#define ABORT(err_msg)
 
#define USER_MALLOC(size)   superlu_malloc_dist(size)
 
#define SUPERLU_MALLOC(size)   USER_MALLOC(size)
 
#define USER_FREE(addr)   superlu_free_dist(addr)
 
#define SUPERLU_FREE(addr)   USER_FREE(addr)
 
#define CHECK_MALLOC(pnum, where)
 
#define SUPERLU_MAX(x, y)   ( (x) > (y) ? (x) : (y) )
 
#define SUPERLU_MIN(x, y)   ( (x) < (y) ? (x) : (y) )
 
#define EMPTY   (-1)
 
#define FALSE   (0)
 
#define TRUE   (1)
 
#define GluIntArray(n)   (5 * (n) + 5)
 
#define NO_MEMTYPE
 
#define StackFull(x)   ( x + stack.used >= stack.size )
 
#define NotDoubleAlign(addr)   ( (long)addr & 7 )
 
#define DoubleAlign(addr)   ( ((long)addr + 7) & ~7L )
 
#define TempSpace(n, w)
 
#define Reduce(alpha)   ((alpha + 1) / 2) /* i.e. (alpha-1)/2 + 1 */
 
#define FIRSTCOL_OF_SNODE(i)   (xsup[i])
 
#define TIC(t)
 
#define TOC(t2, t1)
 
#define L_SUB_START(col)   ( Lstore->rowind_colptr[col] )
 
#define L_SUB(ptr)   ( Lstore->rowind[ptr] )
 
#define L_NZ_START(col)   ( Lstore->nzval_colptr[col] )
 
#define L_FST_SUPC(superno)   ( Lstore->sup_to_col[superno] )
 
#define U_NZ_START(col)   ( Ustore->colptr[col] )
 
#define U_SUB(ptr)   ( Ustore->rowind[ptr] )
 

Typedefs

typedef float flops_t
 
typedef unsigned char Logical
 
typedef struct e_node ExpHeader
 

Detailed Description

Header for utilities.

Macro Definition Documentation

◆ ABORT

#define ABORT (   err_msg)
Value:
{ char msg[256];\
sprintf(msg,"%s at line %d in file %s\n",err_msg,__LINE__, __FILE__);\
USER_ABORT(msg); }

◆ CHECK_MALLOC

#define CHECK_MALLOC (   pnum,
  where 
)
Value:
{ \
extern long int superlu_malloc_total; \
printf("(%d) %s: superlu_malloc_total (MB) %.2f\n", \
pnum, where, superlu_malloc_total*1e-6); \
}
Array< double, 1, 3 > e(1./3., 0.5, 2.)

◆ DoubleAlign

#define DoubleAlign (   addr)    ( ((long)addr + 7) & ~7L )

◆ EMPTY

#define EMPTY   (-1)

◆ FALSE

#define FALSE   (0)

◆ FIRSTCOL_OF_SNODE

#define FIRSTCOL_OF_SNODE (   i)    (xsup[i])

◆ GluIntArray

#define GluIntArray (   n)    (5 * (n) + 5)

◆ L_FST_SUPC

#define L_FST_SUPC (   superno)    ( Lstore->sup_to_col[superno] )

◆ L_NZ_START

#define L_NZ_START (   col)    ( Lstore->nzval_colptr[col] )

◆ L_SUB

#define L_SUB (   ptr)    ( Lstore->rowind[ptr] )

◆ L_SUB_START

#define L_SUB_START (   col)    ( Lstore->rowind_colptr[col] )

◆ NO_MEMTYPE

#define NO_MEMTYPE
Value:
6 /* 0: lusup;
1: ucol;
2: lsub;
3: usub
4: llvl; level number in L for ILU(k)
5: ulvl; level number in U for ILU(k)
*/

◆ NotDoubleAlign

#define NotDoubleAlign (   addr)    ( (long)addr & 7 )

◆ Reduce

#define Reduce (   alpha)    ((alpha + 1) / 2) /* i.e. (alpha-1)/2 + 1 */

◆ StackFull

#define StackFull (   x)    ( x + stack.used >= stack.size )

◆ SUPERLU_FREE

#define SUPERLU_FREE (   addr)    USER_FREE(addr)

◆ SUPERLU_MALLOC

#define SUPERLU_MALLOC (   size)    USER_MALLOC(size)

◆ SUPERLU_MAX

#define SUPERLU_MAX (   x,
  y 
)    ( (x) > (y) ? (x) : (y) )

◆ SUPERLU_MIN

#define SUPERLU_MIN (   x,
  y 
)    ( (x) < (y) ? (x) : (y) )

◆ TempSpace

#define TempSpace (   n,
  w 
)
Value:
( (2*w + 4 + NO_MARKER)*m*sizeof(int) + \
(w + 1)*n*sizeof(double) )
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
RowVector3d w
Definition: Matrix_resize_int.cpp:3
int * m
Definition: level2_cplx_impl.h:294
#define NO_MARKER
Definition: slu_util.h:31

◆ TIC

#define TIC (   t)

◆ TOC

#define TOC (   t2,
  t1 
)

◆ TRUE

#define TRUE   (1)

◆ U_NZ_START

#define U_NZ_START (   col)    ( Ustore->colptr[col] )

◆ U_SUB

#define U_SUB (   ptr)    ( Ustore->rowind[ptr] )

◆ USER_ABORT

#define USER_ABORT (   msg)    superlu_abort_and_exit_dist(msg)

◆ USER_FREE

#define USER_FREE (   addr)    superlu_free_dist(addr)

◆ USER_MALLOC

#define USER_MALLOC (   size)    superlu_malloc_dist(size)

Typedef Documentation

◆ ExpHeader

typedef struct e_node ExpHeader

◆ flops_t

typedef float flops_t

◆ Logical