TBCI Numerical high perf. C++ Library  2.8.0
Classes | Macros | Typedefs | Enumerations | Functions
util.h File Reference

some useful routines for the SuperLU solver More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <assert.h>
#include "tbci/config_manual.h"
Include dependency graph for util.h:

Go to the source code of this file.

Classes

struct  SuperLUStat_t
 

Macros

#define USER_ABORT(msg)   superlu_abort_and_exit(msg)
 
#define ABORT(err_msg)
 
#define USER_MALLOC(size)   superlu_malloc(size)
 
#define SUPERLU_MALLOC(size)   USER_MALLOC(size)
 
#define USER_FREE(addr)   superlu_free(addr)
 
#define SUPERLU_FREE(addr)   USER_FREE(addr)
 
#define MAX(x, y)   ( (x) > (y) ? (x) : (y) )
 
#define MIN(x, y)   ( (x) < (y) ? (x) : (y) )
 
#define EMPTY   (-1)
 
#define NO   (-1)
 
#define FALSE   0
 
#define TRUE   1
 
#define FIRSTCOL_OF_SNODE(i)   (xsup[i])
 

Typedefs

typedef float flops_t
 
typedef unsigned char Logical
 

Enumerations

enum  PhaseType {
  COLPERM, RELAX, ETREE, EQUIL,
  FACT, RCOND, SOLVE, REFINE,
  FLOAT, TRSV, GEMV, FERR,
  NPHASES
}
 

Functions

void PrintStat (SuperLUStat_t *)
 

Detailed Description

some useful routines for the SuperLU solver

Definition in file util.h.

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); }

Definition at line 21 of file util.h.

Referenced by lu_solve().

◆ EMPTY

#define EMPTY   (-1)

Definition at line 59 of file util.h.

◆ FALSE

#define FALSE   0

Definition at line 61 of file util.h.

◆ FIRSTCOL_OF_SNODE

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

Definition at line 99 of file util.h.

◆ MAX

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

Definition at line 50 of file util.h.

◆ MIN

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

Definition at line 53 of file util.h.

◆ NO

#define NO   (-1)

Definition at line 60 of file util.h.

◆ SUPERLU_FREE

#define SUPERLU_FREE (   addr)    USER_FREE(addr)

Definition at line 37 of file util.h.

Referenced by lu_solve().

◆ SUPERLU_MALLOC

#define SUPERLU_MALLOC (   size)    USER_MALLOC(size)

Definition at line 31 of file util.h.

◆ TRUE

#define TRUE   1

Definition at line 62 of file util.h.

◆ USER_ABORT

#define USER_ABORT (   msg)    superlu_abort_and_exit(msg)

Definition at line 18 of file util.h.

◆ USER_FREE

#define USER_FREE (   addr)    superlu_free(addr)

Definition at line 34 of file util.h.

◆ USER_MALLOC

#define USER_MALLOC (   size)    superlu_malloc(size)

Definition at line 28 of file util.h.

Typedef Documentation

◆ flops_t

typedef float flops_t

Definition at line 67 of file util.h.

◆ Logical

typedef unsigned char Logical

Definition at line 68 of file util.h.

Enumeration Type Documentation

◆ PhaseType

enum PhaseType
Enumerator
COLPERM 
RELAX 
ETREE 
EQUIL 
FACT 
RCOND 
SOLVE 
REFINE 
FLOAT 
TRSV 
GEMV 
FERR 
NPHASES 

Definition at line 76 of file util.h.

Function Documentation

◆ PrintStat()

void PrintStat ( SuperLUStat_t )