Commit graph

8 commits

Author SHA1 Message Date
60a7ae725a ColumnIter 2024-05-18 16:16:14 +03:00
0397811247 todo: finish matrix mul 2024-05-18 13:19:34 +03:00
79d94bf357 Restructured matrix module, it is now separated into 1 primary module matrix (struct definition, init methods and getters) and 3 sub-modules: iter - structs and methods for iteration, arithmetic - impl of traits for arithmetic operations, ops - non-arithmetic matrix operations
Implemented Mul, MulAssign, Div and DivAssign traits for Matrix
Added more tests
2024-05-18 12:48:59 +03:00
a2e311f295 Separated Num and Num + Clone implementations
Implemented iterator over every matrix element index pair (i, j) in method Matrix::indices
Removed redundat lifetime specifiers in some iterator methods
Implemented Add, AddAssign, Sub, SubAssign and Neg traits for Matrix
Added some tests for new functionality
2024-05-17 13:33:56 +03:00
25c1f55254 Changed generic type T of matrix to only accept Num + Clone
Derived some traits for Matrix
Added panic when forming minor of a 2x2 matrix
Added row iteration and indexed (i, j) element iteration
Added more tests to Matrix
2024-05-14 14:24:54 +03:00
883df942ea Added into_iter, iter and iter_mut methods to Matrix, restructured math modules 2024-05-13 11:34:59 +03:00
1c4b7dfff3 Added SquareMatrix struct, started implemeting some methods for Matrix 2024-05-11 14:12:26 +03:00
93579e28f0 Initial commit 2024-05-11 01:59:56 +03:00