46 template<
typename dtype>
51 std::istringstream inputStream(inStr);
52 auto values = std::vector<dtype>{};
54 for (std::string segment; std::getline(inputStream, segment, inSep);)
56 if (!inputStream.fail())
58 std::istringstream segmentStream(segment);
59 while (segmentStream >> value)
61 if (!inputStream.fail())
63 values.push_back(value);
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
Definition Cartesian.hpp:39
NdArray< dtype > fromstring(const std::string &inStr, const char inSep=' ')
Definition fromstring.hpp:47