Functions | |
| std::vector< std::string > | split_flexible (const std::string &line) |
| Split a line on any combination of spaces, tabs, and commas. | |
| void | flat_to_grid (int k, const GridLayout2D &layout, int &ix, int &iy) |
| Given a flat index k, return (ix, iy) according to the layout strides. | |
|
inline |
Given a flat index k, return (ix, iy) according to the layout strides.
Requires that exactly one of layout.stride_x / layout.stride_y equals 1.
|
inline |
Split a line on any combination of spaces, tabs, and commas.
Consecutive delimiters are collapsed (empty tokens are ignored), so both "1.0, 2.0, 3.0" and "1.0 2.0 3.0" (and "1.0 ,2.0, 3.0") produce the same three-token result.