Function getDoubleVectorFromString(std::string)

Function Documentation

std::vector<double> getDoubleVectorFromString(std::string str)

Parses a string representing a list of doubles and returns them as a vector.

Parameters:

str – A string in in any format in (a,b), [a,b], a,b with or without spaces, with or without commas representing a list of floats.

Returns:

A vector of doubles parsed from the string.