|
PLASMA
2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
|
| int PLASMA_dgeadd | ( | PLASMA_enum | trans, |
| int | M, | ||
| int | N, | ||
| double | alpha, | ||
| double * | A, | ||
| int | LDA, | ||
| double | beta, | ||
| double * | B, | ||
| int | LDB | ||
| ) |
PLASMA_dgeadd - Performs a matrix addition similarly to the pdgeadd() 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 ) = g( X' )
alpha and beta are scalars, and A, and B are matrices, with op( A ) and B two m by n matrices.
| [in] | trans | Specifies whether the matrix A is transposed, not transposed or ugate transposed: = PlasmaNoTrans: A is not transposed; = PlasmaTrans: A is transposed; = PlasmaTrans: A is ugate transposed. |
| [in] | M | M specifies the number of rows of the matrix op( A ) and of the matrix B. M >= 0. |
| [in] | N | N specifies the number of columns of the matrix op( A ) and of the matrix B. N >= 0. |
| [in] | alpha | alpha specifies the scalar alpha |
| [in] | A | A is a LDA-by-ka matrix, where ka is N when trans = PlasmaNoTrans, and is M otherwise. |
| [in] | LDA | The leading dimension of the array A. LDA >= max(1,K), where K is M when trans = PlasmaNoTrans, and is N when otherwise. |
| [in] | beta | beta specifies the scalar beta |
| [in,out] | B | B is a LDB-by-N matrix. |
| [in] | LDB | The leading dimension of the array B. LDB >= max(1,M). |
| PLASMA_SUCCESS | successful exit |