TBCI Numerical high perf. C++ Library 2.8.0
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)
#define ABORT(err_msg)
#define USER_MALLOC(size)
#define SUPERLU_MALLOC(size)
#define USER_FREE(addr)
#define SUPERLU_FREE(addr)
#define MAX(x, y)
#define MIN(x, y)
#define EMPTY   (-1)
#define NO   (-1)
#define FALSE   0
#define TRUE   1
#define FIRSTCOL_OF_SNODE(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(), lu_solve(), and 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)
Value:
(xsup[i])
int i
Definition LM_fit.h:71

Definition at line 99 of file util.h.

◆ MAX

#define MAX ( x,
y )
Value:
( (x) > (y) ? (x) : (y) )
const Vector< T > const Vector< T > & x
Definition LM_fit.h:97
doublereal y
Definition TOMS_707.C:27

Definition at line 50 of file util.h.

◆ MIN

#define MIN ( x,
y )
Value:
( (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)
Value:
USER_FREE(addr)
#define USER_FREE(addr)
Definition util.h:34

Definition at line 37 of file util.h.

Referenced by lu_solve(), lu_solve(), and lu_solve().

◆ SUPERLU_MALLOC

#define SUPERLU_MALLOC ( size)
Value:
#define USER_MALLOC(size)
Definition util.h:28

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)
Value:
void superlu_abort_and_exit(char *)

Definition at line 18 of file util.h.

◆ USER_FREE

#define USER_FREE ( addr)
Value:
void superlu_free(void *)

Definition at line 34 of file util.h.

◆ USER_MALLOC

#define USER_MALLOC ( size)
Value:
void * superlu_malloc(int)

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 * )
extern