Template Function otyca::sum

Function Documentation

template<typename T>
double otyca::sum(const std::vector<std::vector<T>> &nestedVec)

Computes the sum of all elements in a nested vector.

Template Parameters:

T – Type of elements in the vector.

Parameters:

nestedVec – Input nested vector.

Returns:

double Sum of all elements.