ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
tools.h File Reference
#include "./pblas.h"
Include dependency graph for tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DCOMPLEX
 
struct  SCOMPLEX
 

Macros

#define SLVOID   char
 
#define ErrPrnt   fprintf(stderr, "line %d of file %s\n",__LINE__, __FILE__);
 
#define Mdescset(desc, m, n, mb, nb, rsrc, csrc, ictxt, lld)
 
#define MCindxg2p(IG, nb, srcproc, nprocs)   ( ((srcproc) + (IG)/(nb)) % nprocs )
 
#define Mmalloc(M_ptr, M_type, M_elt, M_i, M_ctxt)
 

Typedefs

typedef void(* CPYPTR) ()
 

Macro Definition Documentation

◆ ErrPrnt

#define ErrPrnt   fprintf(stderr, "line %d of file %s\n",__LINE__, __FILE__);

Definition at line 11 of file tools.h.

◆ MCindxg2p

#define MCindxg2p (   IG,
  nb,
  srcproc,
  nprocs 
)    ( ((srcproc) + (IG)/(nb)) % nprocs )

Definition at line 26 of file tools.h.

◆ Mdescset

#define Mdescset (   desc,
  m,
  n,
  mb,
  nb,
  rsrc,
  csrc,
  ictxt,
  lld 
)
Value:
{ \
(desc)[DT_] = BLOCK_CYCLIC_2D; \
(desc)[CTXT_] = (ictxt); \
(desc)[M_] = (m); \
(desc)[N_] = (n); \
(desc)[MB_] = (mb); \
(desc)[NB_] = (nb); \
(desc)[RSRC_] = (rsrc); \
(desc)[CSRC_] = (csrc); \
(desc)[LLD_] = (lld); \
}

Definition at line 13 of file tools.h.

◆ Mmalloc

#define Mmalloc (   M_ptr,
  M_type,
  M_elt,
  M_i,
  M_ctxt 
)
Value:
{ \
void pberror_(); \
(M_ptr) = ( M_type * ) malloc((M_elt)*(sizeof(M_type))); \
if (!(M_ptr)) \
{ \
if ((M_elt) > 0) \
{ \
(M_i) = 1; \
fprintf(stderr, "Not enough memory on line %d of file %s!!\n", \
__LINE__, __FILE__); \
pberror_(&(M_ctxt), __FILE__, &(M_i)); \
} \
} \
}

Definition at line 32 of file tools.h.

◆ SLVOID

#define SLVOID   char

Definition at line 8 of file tools.h.

Typedef Documentation

◆ CPYPTR

typedef void(* CPYPTR) ()

Definition at line 7 of file tools.h.

M_
#define M_
Definition: PBtools.h:39
MB_
#define MB_
Definition: PBtools.h:43
NB_
#define NB_
Definition: PBtools.h:44
CSRC_
#define CSRC_
Definition: PBtools.h:46
LLD_
#define LLD_
Definition: PBtools.h:47
RSRC_
#define RSRC_
Definition: PBtools.h:45
DT_
#define DT_
Definition: pblas.h:126
N_
#define N_
Definition: PBtools.h:40
BLOCK_CYCLIC_2D
#define BLOCK_CYCLIC_2D
Definition: PBtools.h:20
CTXT_
#define CTXT_
Definition: PBtools.h:38