ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
pztrmr2.c File Reference
#include "redist.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
Include dependency graph for pztrmr2.c:

Go to the source code of this file.

Data Structures

struct  dcomplex
 
struct  MDESC
 
struct  IDESC
 

Macros

#define static2   static
 
#define fortran_mr2d   pztrmr2do
 
#define fortran_mr2dnew   pztrmr2d
 
#define zcopy_   zcopy
 
#define zlacpy_   zlacpy
 
#define Clacpy   Cztrlacpy
 
#define BLOCK_CYCLIC_2D   1
 
#define SHIFT(row, sprow, nbrow)   ((row)-(sprow)+ ((row) >= (sprow) ? 0 : (nbrow)))
 
#define max(A, B)   ((A)>(B)?(A):(B))
 
#define min(A, B)   ((A)>(B)?(B):(A))
 
#define DIVUP(a, b)   ( ((a)-1) /(b)+1)
 
#define ROUNDUP(a, b)   (DIVUP(a,b)*(b))
 
#define scanD0   ztrscanD0
 
#define dispmat   ztrdispmat
 
#define setmemory   ztrsetmemory
 
#define freememory   ztrfreememory
 
#define scan_intervals   ztrscan_intervals
 
#define SENDBUFF   0
 
#define RECVBUFF   1
 
#define SIZEBUFF   2
 
#define NDEBUG
 

Functions

void Clacpy ()
 
void Cblacs_pcoord ()
 
int Cblacs_pnum ()
 
void Csetpvmtids ()
 
void Cblacs_get ()
 
void Cblacs_pinfo ()
 
void Cblacs_gridinfo ()
 
void Cblacs_gridinit ()
 
void Cblacs_exit ()
 
void Cblacs_gridexit ()
 
void Cblacs_setup ()
 
void Cigebs2d ()
 
void Cigebr2d ()
 
void Cigesd2d ()
 
void Cigerv2d ()
 
void Cigsum2d ()
 
void Cigamn2d ()
 
void Cigamx2d ()
 
void Czgesd2d ()
 
void Czgerv2d ()
 
void zlacpy_ ()
 
int localindice ()
 
void * mr2d_malloc ()
 
int ppcm ()
 
int localsize ()
 
int memoryblocksize ()
 
int changeorigin ()
 
void paramcheck ()
 
void scanD0 ()
 
void dispmat ()
 
void setmemory ()
 
void freememory ()
 
int scan_intervals ()
 
void Cpztrmr2do ()
 
void Cpztrmr2d ()
 
void setmemory (dcomplex **adpointer, int blocksize)
 
void freememory (dcomplex *ptrtobefreed)
 
static2 int insidemat (char *uplo, char *diag, int i, int j, int m, int n, int *offset)
 
static2 void intersect (char *uplo, char *diag, int j, int start, int end, int action, int *ptrsizebuff, dcomplex **pptrbuff, dcomplex *ptrblock, int m, int n, MDESC *ma, int ia, int ja, int templateheight0, int templatewidth0, MDESC *mb, int ib, int jb, int templateheight1, int templatewidth1)
 
int scan_intervals (char type, int ja, int jb, int n, MDESC *ma, MDESC *mb, int q0, int q1, int col0, int col1, IDESC *result)
 
void scanD0 (char *uplo, char *diag, int action, ptrbuff, int *ptrsizebuff, int m, int n, MDESC *ma, int ia, int ja, int p0, int q0, MDESC *mb, int ib, int jb, int p1, int q1, IDESC *v_inter, int vinter_nb, IDESC *h_inter, int hinter_nb, dcomplex *ptrbuff *ptrblock)
 

Macro Definition Documentation

◆ BLOCK_CYCLIC_2D

#define BLOCK_CYCLIC_2D   1

Definition at line 39 of file pztrmr2.c.

◆ Clacpy

#define Clacpy   Cztrlacpy

Definition at line 23 of file pztrmr2.c.

◆ dispmat

#define dispmat   ztrdispmat

Definition at line 86 of file pztrmr2.c.

◆ DIVUP

#define DIVUP (   a,
 
)    ( ((a)-1) /(b)+1)

Definition at line 47 of file pztrmr2.c.

◆ fortran_mr2d

#define fortran_mr2d   pztrmr2do

Definition at line 18 of file pztrmr2.c.

◆ fortran_mr2dnew

#define fortran_mr2dnew   pztrmr2d

Definition at line 19 of file pztrmr2.c.

◆ freememory

#define freememory   ztrfreememory

Definition at line 88 of file pztrmr2.c.

◆ max

#define max (   A,
 
)    ((A)>(B)?(A):(B))

Definition at line 45 of file pztrmr2.c.

◆ min

#define min (   A,
 
)    ((A)>(B)?(B):(A))

Definition at line 46 of file pztrmr2.c.

◆ NDEBUG

#define NDEBUG

Definition at line 105 of file pztrmr2.c.

◆ RECVBUFF

#define RECVBUFF   1

Definition at line 99 of file pztrmr2.c.

◆ ROUNDUP

#define ROUNDUP (   a,
 
)    (DIVUP(a,b)*(b))

Definition at line 48 of file pztrmr2.c.

◆ scan_intervals

#define scan_intervals   ztrscan_intervals

Definition at line 89 of file pztrmr2.c.

◆ scanD0

#define scanD0   ztrscanD0

Definition at line 85 of file pztrmr2.c.

◆ SENDBUFF

#define SENDBUFF   0

Definition at line 98 of file pztrmr2.c.

◆ setmemory

#define setmemory   ztrsetmemory

Definition at line 87 of file pztrmr2.c.

◆ SHIFT

#define SHIFT (   row,
  sprow,
  nbrow 
)    ((row)-(sprow)+ ((row) >= (sprow) ? 0 : (nbrow)))

Definition at line 44 of file pztrmr2.c.

◆ SIZEBUFF

#define SIZEBUFF   2

Definition at line 100 of file pztrmr2.c.

◆ static2

#define static2   static

Definition at line 8 of file pztrmr2.c.

◆ zcopy_

#define zcopy_   zcopy

Definition at line 20 of file pztrmr2.c.

◆ zlacpy_

#define zlacpy_   zlacpy

Definition at line 21 of file pztrmr2.c.

Function Documentation

◆ Cblacs_exit()

void Cblacs_exit ( )

◆ Cblacs_get()

void Cblacs_get ( )

◆ Cblacs_gridexit()

void Cblacs_gridexit ( )

◆ Cblacs_gridinfo()

void Cblacs_gridinfo ( )

◆ Cblacs_gridinit()

void Cblacs_gridinit ( )

◆ Cblacs_pcoord()

void Cblacs_pcoord ( )

◆ Cblacs_pinfo()

void Cblacs_pinfo ( )

◆ Cblacs_pnum()

int Cblacs_pnum ( )

◆ Cblacs_setup()

void Cblacs_setup ( )

◆ changeorigin()

int changeorigin ( )

◆ Cigamn2d()

void Cigamn2d ( )

◆ Cigamx2d()

void Cigamx2d ( )

◆ Cigebr2d()

void Cigebr2d ( )

◆ Cigebs2d()

void Cigebs2d ( )

◆ Cigerv2d()

void Cigerv2d ( )

◆ Cigesd2d()

void Cigesd2d ( )

◆ Cigsum2d()

void Cigsum2d ( )

◆ Clacpy()

void Clacpy ( )

◆ Cpztrmr2d()

void Cpztrmr2d ( )

◆ Cpztrmr2do()

void Cpztrmr2do ( )

◆ Csetpvmtids()

void Csetpvmtids ( )

◆ Czgerv2d()

void Czgerv2d ( )

◆ Czgesd2d()

void Czgesd2d ( )

◆ dispmat()

void dispmat ( )

◆ freememory() [1/2]

void freememory ( )

◆ freememory() [2/2]

void freememory ( dcomplex ptrtobefreed)

Definition at line 131 of file pztrmr2.c.

◆ insidemat()

static2 int insidemat ( char *  uplo,
char *  diag,
int  i,
int  j,
int  m,
int  n,
int *  offset 
)

Definition at line 144 of file pztrmr2.c.

Here is the caller graph for this function:

◆ intersect()

static2 void intersect ( char *  uplo,
char *  diag,
int  j,
int  start,
int  end,
int  action,
int *  ptrsizebuff,
dcomplex **  pptrbuff,
dcomplex ptrblock,
int  m,
int  n,
MDESC ma,
int  ia,
int  ja,
int  templateheight0,
int  templatewidth0,
MDESC mb,
int  ib,
int  jb,
int  templateheight1,
int  templatewidth1 
)

Definition at line 179 of file pztrmr2.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ localindice()

int localindice ( )
Here is the caller graph for this function:

◆ localsize()

int localsize ( )

◆ memoryblocksize()

int memoryblocksize ( )

◆ mr2d_malloc()

void* mr2d_malloc ( )
Here is the caller graph for this function:

◆ paramcheck()

void paramcheck ( )

◆ ppcm()

int ppcm ( )

◆ scan_intervals() [1/2]

int scan_intervals ( )

◆ scan_intervals() [2/2]

int scan_intervals ( char  type,
int  ja,
int  jb,
int  n,
MDESC ma,
MDESC mb,
int  q0,
int  q1,
int  col0,
int  col1,
IDESC result 
)

Definition at line 246 of file pztrmr2.c.

◆ scanD0() [1/2]

void scanD0 ( )

◆ scanD0() [2/2]

void scanD0 ( char *  uplo,
char *  diag,
int  action,
ptrbuff  ,
int *  ptrsizebuff,
int  m,
int  n,
MDESC ma,
int  ia,
int  ja,
int  p0,
int  q0,
MDESC mb,
int  ib,
int  jb,
int  p1,
int  q1,
IDESC v_inter,
int  vinter_nb,
IDESC h_inter,
int  hinter_nb,
dcomplex *ptrbuff *  ptrblock 
)

Definition at line 316 of file pztrmr2.c.

Here is the call graph for this function:

◆ setmemory() [1/2]

void setmemory ( )

◆ setmemory() [2/2]

void setmemory ( dcomplex **  adpointer,
int  blocksize 
)

Definition at line 116 of file pztrmr2.c.

Here is the call graph for this function:

◆ zlacpy_()

void zlacpy_ ( )