"Write a function that parses the values from a matrix given as a string to a `std::vector`. A sample 3x4 matrix may be given like this:\n",
"\n",
"```\n",
"2.0 3.2 5.6 7.8\n",
"1.0 4.3 6.9 4.4\n",
"6.8 2.0 10.8 9.1\n",
"```\n",
"\n",
"Use `double` as a dataype for your vector. Store the values to the vector using [row-major order](https://en.wikipedia.org/wiki/Row-_and_column-major_order). Your function should also report the number of rows `m` and the number of columns `n` to the caller. Implement the following signature:\n",
"\n",
"```c++\n",
"void readMatrix( const std::string & matrix, std::vector<double> & values, unsigned int & m, unsigned int & n )\n",
"```\n",
"\n",
"Also write the opposite function that converts the matrix back to a string:\n",
"\n",
"```c++\n",
"std::string matrixToString( const std::vector<double> & values, const unsigned int m, const unsigned int n )\n",
Write a function that parses the values from a matrix given as a string to a `std::vector`. A sample 3x4 matrix may be given like this:
```
2.0 3.2 5.6 7.8
1.0 4.3 6.9 4.4
6.8 2.0 10.8 9.1
```
Use `double` as a dataype for your vector. Store the values to the vector using [row-major order](https://en.wikipedia.org/wiki/Row-_and_column-major_order). Your function should also report the number of rows `m` and the number of columns `n` to the caller. Implement the following signature:
"Write a function that parses the values from a matrix given as a string to a `std::vector`. A sample 3x4 matrix may be given like this:\n",
"\n",
"```\n",
"2.0 3.2 5.6 7.8\n",
"1.0 4.3 6.9 4.4\n",
"6.8 2.0 10.8 9.1\n",
"```\n",
"\n",
"Use `double` as a dataype for your vector. Store the values to the vector using [row-major order](https://en.wikipedia.org/wiki/Row-_and_column-major_order). Your function should also report the number of rows `m` and the number of columns `n` to the caller. Implement the following signature:\n",