p?geadd
p?geadd
Performs sum operation for two distributed general matrices.
Syntax
void psgeadd
(
const char
*trans
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const float
*alpha
,
const float
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
const float
*beta
,
float
*c
,
const MKL_INT
*ic
,
const MKL_INT
*jc
,
const MKL_INT
*descc
);
void pdgeadd
(
const char
*trans
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const double
*alpha
,
const double
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
const double
*beta
,
double
*c
,
const MKL_INT
*ic
,
const MKL_INT
*jc
,
const MKL_INT
*descc
);
void pcgeadd
(
const char
*trans
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const MKL_Complex8
*alpha
,
const MKL_Complex8
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
const MKL_Complex8
*beta
,
MKL_Complex8
*c
,
const MKL_INT
*ic
,
const MKL_INT
*jc
,
const MKL_INT
*descc
);
void pzgeadd
(
const char
*trans
,
const MKL_INT
*m
,
const MKL_INT
*n
,
const MKL_Complex16
*alpha
,
const MKL_Complex16
*a
,
const MKL_INT
*ia
,
const MKL_INT
*ja
,
const MKL_INT
*desca
,
const MKL_Complex16
*beta
,
MKL_Complex16
*c
,
const MKL_INT
*ic
,
const MKL_INT
*jc
,
const MKL_INT
*descc
);
Include Files
- mkl_pblas.h
Description
The
p?geadd
routines perform sum operation for two distributed general matrices. The operation is defined as sub(C):=beta*sub(C) + alpha*op(sub(A)),
where:
op(
is one of x
)op(
, or x
) = x
op(
,x
) = x
'alpha
and beta
are scalars,sub(
is an C
)m
-by-n
distributed
matrix, sub(
.C
)=C
(ic
:ic
+m
-1, jc
:jc
+n
-1)sub(
is a distributed matrix, A
)sub(
. A
)=A
(ia
:ia
+n
-1, ja
:ja
+m
-1)Input Parameters
- trans
- (global) Specifies the operation:ifortrans='N', then'n'op(sub(;A)) := sub(A)ifortrans='T', then't'op(sub(';A)) := sub(A)ifortrans='C', then'c'op(sub('.A)) := sub(A)
- m
- (global) Specifies the number of rows of the distributed matrixsub(and the number of columns of the submatrixC)sub(,A)m≥0.
- n
- (global) Specifies the number of columns of the distributed matrixsub(and the number of rows of the submatrixC)sub(,A)n≥0.
- alpha
- (global)Specifies the scalaralpha.
- a
- (local)Array, size(. This array contains the local pieces of the distributed matrixlld_a, LOCq(ja+m-1))sub(.A)
- ia,ja
- (global) The row and column indices in the distributed matrixAindicating the first row and the first column of the submatrixsub(, respectively.A)
- desca
- (global and local) array of dimension 9. The array descriptor of the distributed matrixA.
- beta
- (global)Specifies the scalarbeta.Whenbetais equal to zero, thensub(need not be set on input.C)
- c
- (local)Array, size(.lld_c, LOCq(jc+n-1))This array contains the local pieces of the distributed matrixsub(.C)
- ic,jc
- (global) The row and column indices in the distributed matrixCindicating the first row and the first column of the submatrixsub(, respectively.C)
- descc
- (global and local) array of dimension 9. The array descriptor of the distributed matrixC.
Output Parameters
- c
- Overwritten by the updated submatrix.