Matrix2D is currently a single file >1300 LOC monolith.
I want the different implementations of Matrix2D to be split into different files so that navigating through the code is easier. I also want the tests to be in their own separate file.
The exact splitting of the struct into files is tbd but in general, the files should be split as follows:
- Math (Mul, Div, Sub, Add, dot)
- Basic utility (shape, size, max, min, etc)
- Matrix creation (new, full, from flat, identity, etc)
- Matrix manipulation (inverse, transpose, reshape, swap rows, etc)
- Indexing
- Iteration
- Display
- Rounding
Exact splits subject to change (depending on how flexible Rust is with implementations)
Matrix2D is currently a single file >1300 LOC monolith.
I want the different implementations of Matrix2D to be split into different files so that navigating through the code is easier. I also want the tests to be in their own separate file.
The exact splitting of the struct into files is tbd but in general, the files should be split as follows:
Exact splits subject to change (depending on how flexible Rust is with implementations)