Scythe-1.0.3
template<typename T , matrix_order PO, matrix_style PS>
T scythe::sum ( const Matrix< T, PO, PS > &  A)

Calculate the sum of a Matrix.

This function calculates the sum of a matrix by adding each element in turn.

Parameters:
AThe matrix to be summed.
See also:
prod(const Matrix<T,PO,PS> &A)
sumc(const Matrix<T,PO,PS> &A)
prodc(const Matrix<T,PO,PS> &A)

References scythe::Matrix< T_type, ORDER, STYLE >::begin_f(), and scythe::Matrix< T_type, ORDER, STYLE >::end_f().

Referenced by pgamma().