|
ScaLAPACK
2.0.2
ScaLAPACK: Scalable Linear Algebra PACKage
|
#include "Bdef.h"Go to the source code of this file.
Functions/Subroutines | |
| int | Cblacs_pnum (int ConTxt, int prow, int pcol) |
| int Cblacs_pnum | ( | int | ConTxt, |
| int | prow, | ||
| int | pcol | ||
| ) |
Definition at line 4 of file blacs_pnum_.c.
{
BLACSCONTEXT *ctxt;
MGetConTxt(Mpval(ConTxt), ctxt);
if ( (Mpval(prow) >= 0) && (Mpval(prow) < ctxt->cscp.Np) &&
(Mpval(pcol) >= 0) && (Mpval(pcol) < ctxt->rscp.Np) )
return( Mkpnum(ctxt, Mpval(prow), Mpval(pcol)) );
else return(-1);
}