Template Function librapid::linalg::geam(const array::ArrayContainer<ShapeTypeA, Storage<StorageScalar>>&, Alpha, const array::ArrayContainer<ShapeTypeB, Storage<StorageScalar>>&, Beta, array::ArrayContainer<ShapeTypeC, Storage<StorageScalar>>&)#
Defined in File geam.hpp
Function Documentation#
-
template<typename StorageScalar, typename ShapeTypeA, typename ShapeTypeB, typename ShapeTypeC, typename Alpha, typename Beta>
void librapid::linalg::geam(const array::ArrayContainer<ShapeTypeA, Storage<StorageScalar>> &a, Alpha alpha, const array::ArrayContainer<ShapeTypeB, Storage<StorageScalar>> &b, Beta beta, array::ArrayContainer<ShapeTypeC, Storage<StorageScalar>> &c)# General matrix-matrix addition.
Computes \( \mathbf{C} = \alpha \mathrm{op}_A(\mathbf{A}) + \beta \mathrm{op}_B(\mathbf{B}) \), for matrices \( \mathbf{A} \) and \( \mathbf{B} \) and scalars \( \alpha \) and \( \beta \).
- Template Parameters
StorageScalar – Storage type of the input and output arrays.
ShapeTypeA – Shape type of the first input array.
ShapeTypeB – Shape type of the second input array.
ShapeTypeC – Shape type of the output array.
Alpha – Scalar type of the \( \alpha \) parameter.
Beta – Scalar type of the \( \beta \) parameter.
- Parameters
a – First input array.
alpha – Scalar \( \alpha \).
b – Second input array.
beta – Scalar \( \beta \).
c – Output array.