p?latra
p?latra
Computes the trace of a general square distributed matrix.
Syntax
float
pslatra
(
MKL_INT
*n
,
float
*a
,
MKL_INT
*ia
,
MKL_INT
*ja
,
MKL_INT
*desca
);
double
pdlatra
(
MKL_INT
*n
,
double
*a
,
MKL_INT
*ia
,
MKL_INT
*ja
,
MKL_INT
*desca
);
void
pclatra
(
MKL_Complex8
*
,
MKL_INT
*n
,
MKL_Complex8
*a
,
MKL_INT
*ia
,
MKL_INT
*ja
,
MKL_INT
*desca
);
void
pzlatra
(
MKL_Complex16
*
,
MKL_INT
*n
,
MKL_Complex16
*a
,
MKL_INT
*ia
,
MKL_INT
*ja
,
MKL_INT
*desca
);
Include Files
- mkl_scalapack.h
Description
This function computes the trace of an , . The result is left on every process of the grid.
n
-by-n
distributed matrix sub(A
) denoting A
(ia
:ia
+n
-1ja
:ja
+n
-1)Input Parameters
- n
- (global)The number of rows and columns to be operated on, that is, the order of the distributed matrix sub(A)..n≥0
- a
- (local).Pointer into the local memory to an array of sizecontaining the local pieces of the distributed matrix, the trace of which is to be computed.lld_a*LOCc(ja+n-1)
- ia,ja
- (global) The row and column indices respectively in the global matrixAindicating the first row and the first column of the matrix sub(A), respectively.
- desca
- (global and local) array of sizedlen_. The array descriptor for the distributed matrixA.
Output Parameters
- val
- The value returned by the function.