Function sum_negative(vector<double>&)

Function Documentation

double sum_negative(vector<double> &x)

returns the sum of the negative components

Parameters:

x – input vector