PLASMA  2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
int PLASMA_cgeadd ( PLASMA_enum  trans,
int  M,
int  N,
PLASMA_Complex32_t  alpha,
PLASMA_Complex32_t *  A,
int  LDA,
PLASMA_Complex32_t  beta,
PLASMA_Complex32_t *  B,
int  LDB 
)

PLASMA_cgeadd - Performs a matrix addition similarly to the pcgeadd() function from the PBLAS library:

\[ C = \alpha op( A ) + \beta B \]

,

where op( X ) is one of

op( X ) = X or op( X ) = X' or op( X ) = conjfg( X' )

alpha and beta are scalars, and A, and B are matrices, with op( A ) and B two m by n matrices.

Parameters
[in]transSpecifies whether the matrix A is transposed, not transposed or conjfugate transposed: = PlasmaNoTrans: A is not transposed; = PlasmaTrans: A is transposed; = PlasmaConjTrans: A is conjfugate transposed.
[in]MM specifies the number of rows of the matrix op( A ) and of the matrix B. M >= 0.
[in]NN specifies the number of columns of the matrix op( A ) and of the matrix B. N >= 0.
[in]alphaalpha specifies the scalar alpha
[in]AA is a LDA-by-ka matrix, where ka is N when trans = PlasmaNoTrans, and is M otherwise.
[in]LDAThe leading dimension of the array A. LDA >= max(1,K), where K is M when trans = PlasmaNoTrans, and is N when otherwise.
[in]betabeta specifies the scalar beta
[in,out]BB is a LDB-by-N matrix.
[in]LDBThe leading dimension of the array B. LDB >= max(1,M).
Returns
Return values
PLASMA_SUCCESSsuccessful exit
See also
PLASMA_cgeadd_Tile
PLASMA_cgeadd
PLASMA_dgeadd
PLASMA_sgeadd