This patch makes sure that MatrixElement is handling all of the
string parsing in the input data files. Previously, MtxParser was
doing this separetly and passing a float value. This by-passed the
error checking in MatrixElement and caused some errors to be
missed.
... | ... |
@@ -11,11 +11,6 @@ static bool containsNumber(const std::string &s) |
11 | 11 |
return !s.empty() && s.find_first_not_of("0123456789.-") == std::string::npos; |
12 | 12 |
} |
13 | 13 |
|
14 |
-MatrixElement::MatrixElement(unsigned r, unsigned c, float v) // NOLINT |
|
15 |
- : |
|
16 |
-row(r), col(c), value(v) |
|
17 |
-{} |
|
18 |
- |
|
19 | 14 |
MatrixElement::MatrixElement(unsigned r, unsigned c, const std::string &s) // NOLINT |
20 | 15 |
: |
21 | 16 |
row(r), col(c), value(0.f) |