MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages

\( B = \alpha A + \beta B \) More...

Functions

void magmablas_cgeadd (magma_int_t m, magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_const_ptr dA, magma_int_t ldda, magmaFloatComplex_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD adds two matrices, dB = alpha*dA + dB. More...
 
void magmablas_cgeadd2 (magma_int_t m, magma_int_t n, magmaFloatComplex alpha, magmaFloatComplex_const_ptr dA, magma_int_t ldda, magmaFloatComplex beta, magmaFloatComplex_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB. More...
 
void magmablas_dgeadd (magma_int_t m, magma_int_t n, double alpha, magmaDouble_const_ptr dA, magma_int_t ldda, magmaDouble_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD adds two matrices, dB = alpha*dA + dB. More...
 
void magmablas_dgeadd2 (magma_int_t m, magma_int_t n, double alpha, magmaDouble_const_ptr dA, magma_int_t ldda, double beta, magmaDouble_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB. More...
 
void magmablas_sgeadd (magma_int_t m, magma_int_t n, float alpha, magmaFloat_const_ptr dA, magma_int_t ldda, magmaFloat_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD adds two matrices, dB = alpha*dA + dB. More...
 
void magmablas_sgeadd2 (magma_int_t m, magma_int_t n, float alpha, magmaFloat_const_ptr dA, magma_int_t ldda, float beta, magmaFloat_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB. More...
 
void magmablas_zgeadd (magma_int_t m, magma_int_t n, magmaDoubleComplex alpha, magmaDoubleComplex_const_ptr dA, magma_int_t ldda, magmaDoubleComplex_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD adds two matrices, dB = alpha*dA + dB. More...
 
void magmablas_zgeadd2 (magma_int_t m, magma_int_t n, magmaDoubleComplex alpha, magmaDoubleComplex_const_ptr dA, magma_int_t ldda, magmaDoubleComplex beta, magmaDoubleComplex_ptr dB, magma_int_t lddb, magma_queue_t queue)
 ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB. More...
 

Detailed Description

\( B = \alpha A + \beta B \)

Function Documentation

void magmablas_cgeadd ( magma_int_t  m,
magma_int_t  n,
magmaFloatComplex  alpha,
magmaFloatComplex_const_ptr  dA,
magma_int_t  ldda,
magmaFloatComplex_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD adds two matrices, dB = alpha*dA + dB.

Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaCOMPLEX The scalar alpha.
[in]dACOMPLEX array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in,out]dBCOMPLEX array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_cgeadd2 ( magma_int_t  m,
magma_int_t  n,
magmaFloatComplex  alpha,
magmaFloatComplex_const_ptr  dA,
magma_int_t  ldda,
magmaFloatComplex  beta,
magmaFloatComplex_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB.

See Also
ZGEADD for dB = alpha*dA + dB, lacking beta.
Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaCOMPLEX The scalar alpha.
[in]dACOMPLEX array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]betaCOMPLEX The scalar beta.
[in,out]dBCOMPLEX array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_dgeadd ( magma_int_t  m,
magma_int_t  n,
double  alpha,
magmaDouble_const_ptr  dA,
magma_int_t  ldda,
magmaDouble_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD adds two matrices, dB = alpha*dA + dB.

Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaDOUBLE PRECISION The scalar alpha.
[in]dADOUBLE PRECISION array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in,out]dBDOUBLE PRECISION array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_dgeadd2 ( magma_int_t  m,
magma_int_t  n,
double  alpha,
magmaDouble_const_ptr  dA,
magma_int_t  ldda,
double  beta,
magmaDouble_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB.

See Also
ZGEADD for dB = alpha*dA + dB, lacking beta.
Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaDOUBLE PRECISION The scalar alpha.
[in]dADOUBLE PRECISION array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]betaDOUBLE PRECISION The scalar beta.
[in,out]dBDOUBLE PRECISION array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_sgeadd ( magma_int_t  m,
magma_int_t  n,
float  alpha,
magmaFloat_const_ptr  dA,
magma_int_t  ldda,
magmaFloat_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD adds two matrices, dB = alpha*dA + dB.

Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaREAL The scalar alpha.
[in]dAREAL array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in,out]dBREAL array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_sgeadd2 ( magma_int_t  m,
magma_int_t  n,
float  alpha,
magmaFloat_const_ptr  dA,
magma_int_t  ldda,
float  beta,
magmaFloat_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB.

See Also
ZGEADD for dB = alpha*dA + dB, lacking beta.
Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaREAL The scalar alpha.
[in]dAREAL array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]betaREAL The scalar beta.
[in,out]dBREAL array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_zgeadd ( magma_int_t  m,
magma_int_t  n,
magmaDoubleComplex  alpha,
magmaDoubleComplex_const_ptr  dA,
magma_int_t  ldda,
magmaDoubleComplex_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD adds two matrices, dB = alpha*dA + dB.

Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaCOMPLEX_16 The scalar alpha.
[in]dACOMPLEX_16 array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in,out]dBCOMPLEX_16 array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magmablas_zgeadd2 ( magma_int_t  m,
magma_int_t  n,
magmaDoubleComplex  alpha,
magmaDoubleComplex_const_ptr  dA,
magma_int_t  ldda,
magmaDoubleComplex  beta,
magmaDoubleComplex_ptr  dB,
magma_int_t  lddb,
magma_queue_t  queue 
)

ZGEADD2 adds two matrices, dB = alpha*dA + beta*dB.

See Also
ZGEADD for dB = alpha*dA + dB, lacking beta.
Parameters
[in]mINTEGER The number of rows of the matrix dA. M >= 0.
[in]nINTEGER The number of columns of the matrix dA. N >= 0.
[in]alphaCOMPLEX_16 The scalar alpha.
[in]dACOMPLEX_16 array, dimension (LDDA,N) The m by n matrix dA.
[in]lddaINTEGER The leading dimension of the array dA. LDDA >= max(1,M).
[in]betaCOMPLEX_16 The scalar beta.
[in,out]dBCOMPLEX_16 array, dimension (LDDB,N) The m by n matrix dB.
[in]lddbINTEGER The leading dimension of the array dB. LDDB >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.