EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
def.h File Reference

defs in EVSL More...

#include <stdlib.h>
#include <assert.h>
#include <math.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 
#define PI   M_PI
 
#define orthTol   1e-14
 
#define CHKERR(ierr)   assert(!(ierr))
 
#define Malloc(base, nmem, type)
 
#define Calloc(base, nmem, type)
 
#define Realloc(base, nmem, type)
 
#define max(a, b)   ((a) > (b) ? (a) : (b))
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define EVSLFORT(name)   name ## _f90_
 
#define NGS_MAX   2
 
#define EVSL_Int   int
 
#define EVSL_Unsigned   unsigned
 

Detailed Description

defs in EVSL

Definition in file def.h.

Macro Definition Documentation

#define Calloc (   base,
  nmem,
  type 
)
Value:
{ \
size_t nbytes = (nmem) * sizeof(type); \
(base) = (type*) calloc((nmem), sizeof(type)); \
if ((base) == NULL) { \
fprintf(stdout, "EVSL Error: out of memory [%zu bytes asked]\n", nbytes); \
fprintf(stdout, "Calloc at FILE %s, LINE %d, nmem %zu\n", __FILE__, __LINE__, (size_t) nmem); \
exit(-1); \
} \
}

Definition at line 32 of file def.h.

Referenced by ChebLanTr(), chext(), LanDos(), LanDosG(), LanTrbounds(), RatLanTr(), SetAMatrix(), SetAMatvec(), SetASigmaBSol(), SetBMatrix(), SetBMatvec(), SetBSol(), SetLTSol(), SetupASIGMABSolDirect(), SetupBPol(), and SymmTridEigS().

#define CHKERR (   ierr)    assert(!(ierr))

Definition at line 19 of file def.h.

Referenced by ASIGMABSolDirect(), SetupASIGMABSolDirect(), SetupBSolDirect(), and triuCsr().

#define EVSL_Int   int

integer type of EVSL

Definition at line 73 of file def.h.

Referenced by triuCsr().

#define EVSL_Unsigned   unsigned

Definition at line 74 of file def.h.

Referenced by triuCsr().

#define EVSLFORT (   name)    name ## _f90_

Fortran interface naming convention

Definition at line 66 of file def.h.

#define M_PI   3.14159265358979323846

Definition at line 13 of file def.h.

Referenced by contQuad().

#define Malloc (   base,
  nmem,
  type 
)
Value:
{ \
size_t nbytes = (nmem) * sizeof(type); \
(base) = (type*) malloc(nbytes); \
if ((base) == NULL) { \
fprintf(stdout, "EVSL Error: out of memory [%zu bytes asked]\n", nbytes); \
fprintf(stdout, "Malloc at FILE %s, LINE %d, nmem %zu\n", __FILE__, __LINE__, (size_t) nmem); \
exit(-1); \
} \
}

Definition at line 22 of file def.h.

Referenced by ChebLanNr(), ChebLanTr(), ChebSI(), chebxPltd(), contQuad(), csr_resize(), csrMat_to_cholmod_sparse(), evsl_arr2csr(), evsl_cheblannr(), evsl_cheblantr(), evsl_coo2csr(), evsl_find_pol(), evsl_find_rat(), evsl_kpm_spslicer(), evsl_lanbounds(), evsl_ratlannr(), evsl_ratlantr(), exeiglap3(), find_pol(), find_ratf(), intChx(), kpmdos(), LanBounds(), LanDos(), LanDosG(), LanTrbounds(), lapgen(), lsPol(), RatLanNr(), RatLanTr(), SetupASIGMABSolDirect(), SetupBPol(), SetupBSolDirect(), sort_double(), sortrow(), spslicer(), SymEigenSolver(), SymmTridEig(), SymmTridEigS(), and weights().

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

Computes the maximum of x and y.

Definition at line 56 of file def.h.

Referenced by ChebLanTr(), driver(), exDOS(), find_pol(), find_ratf(), kpmdos(), LanDos(), LanDosG(), RatLanTr(), and spslicer().

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

Computes the minimum of x and y.

Definition at line 62 of file def.h.

Referenced by ChebLanNr(), ChebLanTr(), driver(), exDOS(), find_pol(), find_ratf(), kpmdos(), LanBounds(), LanDos(), LanDosG(), LanTrbounds(), RatLanNr(), RatLanTr(), and spslicer().

#define NGS_MAX   2

max number of Gram–Schmidt process in orthogonalization

Definition at line 70 of file def.h.

#define orthTol   1e-14

Definition at line 17 of file def.h.

Referenced by ChebLanNr(), ChebLanTr(), LanBounds(), LanDos(), LanDosG(), LanTrbounds(), RatLanNr(), and RatLanTr().

#define PI   M_PI

Definition at line 15 of file def.h.

Referenced by dampcf(), exDOS(), exeiglap3(), kpmdos(), LanDos(), LanDosG(), and lsPol().

#define Realloc (   base,
  nmem,
  type 
)
Value:
{\
size_t nbytes = (nmem) * sizeof(type); \
(base) = (type*) realloc((base), nbytes); \
if ((base) == NULL && nbytes > 0) { \
fprintf(stdout, "EVSL Error: out of memory [%zu bytes asked]\n", nbytes); \
fprintf(stdout, "Realloc at FILE %s, LINE %d, nmem %zu\n", __FILE__, __LINE__, (size_t) nmem); \
exit(-1); \
} \
}

Definition at line 42 of file def.h.

Referenced by ChebLanNr(), ChebLanTr(), exeiglap3(), matadd(), RatLanNr(), and RatLanTr().