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

Calculate the sum of each column in a Matrix.

This function calculates the sum of each column in a matrix by consecutively adding elements in a single column, looping through all columns, and returning the results.

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