Commit graph

23 commits

Author SHA1 Message Date
b53ec32c7d Somewhat working binary expression tree 2024-05-30 12:05:57 +03:00
ab5fa70b7b Removed num module, using external num crate once again, started working on expr module (math expression parser) 2024-05-30 01:57:28 +03:00
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
17e0edb3ca Updated gitignore 2024-05-26 23:14:36 +03:00
65bb1f1823 Moved yew web project into another repo, removed sq_matrix module 2024-05-26 22:57:00 +03:00
8c1272fa9c Added web-sys and wasm-bindgen dependencies to web crate, fixed matrix cell oninput event 2024-05-25 03:21:27 +03:00
f53170b16b Moved matrix yew components to file matrix.rs, minor refactoring 2024-05-25 02:30:16 +03:00
881236c725 Generic type T for Matrix and SquareMatrix is now bound by the trait Copy instead of Clone
Removed all explicit calls to clone and slightly modified matrix operations (due to the change mentioned above)
Added methods remove_row, remove_column, remove_last_row and remove_last_column + tests
Minor SquareMatrix refactor
Added matrix style in index.scss and removed html selector
Implemented "Add row" and "Add column" buttons for yew matrix component
2024-05-24 17:18:52 +03:00
e4e17953e2 Added append_row, append_column, append_row_zeroes and append_column_zeroes methods to math::matrix::Matrix + some tests
Minor index.scss styles changes
Added prototype implementation for MatrixComponent in web crate
2024-05-24 02:42:09 +03:00
199805aafc Added favicon and styles index.scss files, updated .gitignore 2024-05-23 21:48:17 +03:00
f62c06a49b Added crate web with sample yew code, added trunk config file 2024-05-23 11:43:49 +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