Commit graph

14 commits

Author SHA1 Message Date
182f73db27 Started working on a new module - num, that will replace the current external num crate 2024-05-27 01:20:45 +03:00
7dfef8b718 Matrix can now be of size 1x1, can take minor of 2x2 matrix, minor tests modifications 2024-05-26 23:52:09 +03:00
65bb1f1823 Moved yew web project into another repo, removed sq_matrix module 2024-05-26 22:57:00 +03:00
211fc67cf2 Restructured the project to use cargo workspace, math module is now a separate crate 2024-05-23 11:08:52 +03:00
a998ec4339 Implemented matrix multiplication, added tests for matrix mul and iter 2024-05-23 10:43:04 +03:00
7cad1b8dfc Implemented row, column, column_iter and column_iters methods, added more tests 2024-05-23 02:15:53 +03:00
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