Template Function librapid::linalg::geam(const array::ArrayContainer<ShapeTypeA, Storage<StorageScalar>>&, Alpha, const array::ArrayContainer<ShapeTypeB, Storage<StorageScalar>>&, Beta, array::ArrayContainer<ShapeTypeC, Storage<StorageScalar>>&)#

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
  • StorageScalarStorage type of the input and output arrays.

  • ShapeTypeAShape type of the first input array.

  • ShapeTypeBShape type of the second input array.

  • ShapeTypeCShape 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.