|
SLATE 2024.05.31
Software for Linear Algebra Targeting Exascale
|
\(B = \alpha A + \beta B\) More...
Functions | |
| template<typename scalar_t > | |
| void | slate::add (scalar_t alpha, Matrix< scalar_t > &A, scalar_t beta, Matrix< scalar_t > &B, Options const &opts) |
| Distributed parallel general matrix-matrix addition. | |
| template<typename scalar_t > | |
| void | slate::add (scalar_t alpha, BaseTrapezoidMatrix< scalar_t > &A, scalar_t beta, BaseTrapezoidMatrix< scalar_t > &B, Options const &opts) |
| Distributed parallel matrix-matrix addition. | |
\(B = \alpha A + \beta B\)
| void slate::add | ( | scalar_t | alpha, |
| BaseTrapezoidMatrix< scalar_t > & | A, | ||
| scalar_t | beta, | ||
| BaseTrapezoidMatrix< scalar_t > & | B, | ||
| Options const & | opts | ||
| ) |
Distributed parallel matrix-matrix addition.
Performs the matrix-matrix operation
\[ B = \alpha A + \beta B, \]
where alpha and beta are scalars, and \(A\) and \(B\) are matrices, with \(A\) an m-by-n matrix and \(B\) a m-by-n matrix. Transposition is currently not supported. TODO: Support transposition.
| scalar_t | One of float, double, std::complex<float>, std::complex<double>. |
| [in] | alpha | The scalar alpha. |
| [in] | A | The m-by-n matrix A. |
| [in] | beta | The scalar beta. |
| [in,out] | B | On entry, the m-by-n matrix B. On exit, overwritten by the result \(\alpha A + \beta B\). |
| [in] | opts | Additional options, as map of name = value pairs. Possible options:
|
| void slate::add | ( | scalar_t | alpha, |
| Matrix< scalar_t > & | A, | ||
| scalar_t | beta, | ||
| Matrix< scalar_t > & | B, | ||
| Options const & | opts | ||
| ) |
Distributed parallel general matrix-matrix addition.
Performs the matrix-matrix operation
\[ B = \alpha A + \beta B, \]
where alpha and beta are scalars, and \(A\) and \(B\) are matrices, with \(A\) an m-by-n matrix and \(B\) a m-by-n matrix. Transposition is currently not supported. TODO: Support transposition.
| scalar_t | One of float, double, std::complex<float>, std::complex<double>. |
| [in] | alpha | The scalar alpha. |
| [in] | A | The m-by-n matrix A. |
| [in] | beta | The scalar beta. |
| [in,out] | B | On entry, the m-by-n matrix B. On exit, overwritten by the result \(\alpha A + \beta B\). |
| [in] | opts | Additional options, as map of name = value pairs. Possible options:
|