Sum¶
Description¶
Calculates a sum of arrays or matrices.
Inputs¶
Array or matrix \(a_1\).
Array or matrix \(a_2\).
Array or matrix \(a_N\).
The inputs are passed via add()
method.
All the inputs have to be of the same dimension.
Outputs¶
'sum.sum'
— the sum \(S\).
Implementation¶
Computes a sum \(S\):
\[S = \sum\limits_{k=1}^N a_k.\]