47 Commits

Author SHA1 Message Date
Palash Tyagi
f39c678192 Add test for matrix multiplication error handling and create 4x4 test matrix with NaNs 2025-07-06 00:38:07 +01:00
Palash Tyagi
1ebc3546d2 Refactor assertions for clarity in Matrix methods and update test cases for consistency 2025-07-05 21:07:32 +01:00
Palash Tyagi
ffe635f1c4 Add transpose method and corresponding tests for Matrix 2025-07-05 21:07:21 +01:00
Palash Tyagi
75f194b8c9 Implement matrix multiplication and dot product methods for FloatMatrix in SeriesOps trait 2025-07-05 20:44:16 +01:00
Palash Tyagi
bc5cc65897 Update documentation for to_vec method to improve clarity 2025-07-04 00:53:15 +01:00
Palash Tyagi
2e980a78fa Update documentation for Matrix struct to clarify indexing method 2025-05-11 00:46:46 +01:00
Palash Tyagi
b17863dcdc Organize code structure by adding section comments 2025-05-03 01:18:24 +01:00
Palash Tyagi
ac0eed2d56 Add comprehensive arithmetic and boolean logic tests for Matrix operations 2025-05-03 01:17:01 +01:00
Palash Tyagi
73a30d45c5 Rename test matrix creation functions for clarity and consistency 2025-05-03 01:16:33 +01:00
Palash Tyagi
3cb68be062 Refactor element-wise arithmetic operations to use a centralized dimension check for improved error handling 2025-05-03 01:11:59 +01:00
Palash Tyagi
ca734fbedf Enhance bitwise operations for boolean matrices and implement logical NOT for both owned and borrowed matrices 2025-05-03 00:39:08 +01:00
Palash Tyagi
36a0846efa Enhance element-wise arithmetic operations for Matrix + Scalar to support in-place modifications and improve performance 2025-05-03 00:38:07 +01:00
Palash Tyagi
7f587a7b7e Enhance element-wise arithmetic operations for Matrix to support multiple ownership variants and improve in-place modifications 2025-05-03 00:37:06 +01:00
Palash Tyagi
a30a7101e8 Refactor element-wise comparison macro to improve naming consistency 2025-05-03 00:36:03 +01:00
Palash Tyagi
10c6116f8f Enhance element-wise comparison methods to optimize data handling 2025-05-03 00:35:34 +01:00
Palash Tyagi
ecb1939ec2 Enhance error messages in Broadcastable trait to clarify row and column count mismatches 2025-05-03 00:32:46 +01:00
Palash Tyagi
bdd0a23096 Enhance add_column and add_row methods to handle empty matrices and improve error handling 2025-05-03 00:31:11 +01:00
Palash Tyagi
4c02006153 Optimize column swapping logic to handle empty matrices and prevent unnecessary swaps 2025-05-03 00:29:14 +01:00
Palash Tyagi
9fd3582061 Refactor delete_row method to improve bounds checking and optimize data rebuilding 2025-05-03 00:26:43 +01:00
Palash Tyagi
8574d86abc Enhance delete_column method to improve efficiency of column removal 2025-05-03 00:26:21 +01:00
Palash Tyagi
20727a2b91 Improve column swapping logic to handle empty matrices and prevent overlapping swaps 2025-05-03 00:25:45 +01:00
Palash Tyagi
f91ddc5c41 Improve assertions and documentation for matrix operations; allow 0-row matrices from empty columns. 2025-05-01 23:56:06 +01:00
Palash Tyagi
ba1e2b3d43 update imports and module docstring 2025-05-01 23:14:37 +01:00
Palash Tyagi
a0a551c7d9 update into_vec, from_vec 2025-05-01 23:13:57 +01:00
Palash Tyagi
7cf41171a8 Allow creation of 0-row matrices from empty column data and improve data flattening in from_cols method. 2025-05-01 23:12:19 +01:00
Palash Tyagi
38c5c28454 Enhance matrix assertions for row and column operations to allow 0-row matrices with empty columns and improve error messages for index out of bounds. 2025-05-01 23:10:51 +01:00
Palash Tyagi
1865e90956 Improve documentation formatting for Broadcastable trait and element-wise comparison methods 2025-04-26 02:54:13 +01:00
Palash Tyagi
d0b9ab0716 Implement element-wise arithmetic operations for matrices with scalars and add corresponding unit tests 2025-04-26 02:49:43 +01:00
Palash Tyagi
2ff4a99346 Reorganize type aliases for matrix types: move to appropriate location for clarity 2025-04-26 02:45:56 +01:00
Palash Tyagi
9b96dad956 Refactor Axis enum definition: move to appropriate location and remove duplicate 2025-04-26 02:45:18 +01:00
Palash Tyagi
6804e7ca5a Add unit test for mutable data access in Matrix 2025-04-26 02:42:38 +01:00
Palash Tyagi
ebfd63d9db Add tests for broadcastable operations and fix comment formatting 2025-04-26 00:22:25 +01:00
Palash Tyagi
cf5ae8550e Refactor Matrix implementation to require Clone trait and reorder methods for clarity 2025-04-26 00:22:08 +01:00
Palash Tyagi
56bb579530 Implement broadcasting trait for matrices and enhance element-wise comparison methods 2025-04-24 23:50:20 +01:00
Palash Tyagi
21fc4a7241 Refactor element-wise comparison implementation for matrices 2025-04-24 23:39:34 +01:00
Palash Tyagi
601c1c58d0 Refactor element-wise comparison implementation for matrices 2025-04-24 23:33:04 +01:00
Palash Tyagi
ea8e1c8471 Implement element-wise equality comparison for matrices 2025-04-24 23:19:02 +01:00
Palash Tyagi
6e0606709d Remove unused comment regarding macro implementations in BoolOps 2025-04-23 19:59:18 +01:00
Palash Tyagi
284471f4aa Fix typos in documentation comments and improve clarity in cumsum_horizontal implementation 2025-04-23 19:57:46 +01:00
Palash Tyagi
c30646d5d0 updating comments 2025-04-23 18:57:38 +01:00
Palash Tyagi
1d81f7e72f moved tests out of tests directory 2025-04-20 01:46:57 +01:00
Palash Tyagi
b6ce1c9076 move matrix tests to mat.rs 2025-04-20 01:42:32 +01:00
Palash Tyagi
9e05ad836a bugfix: refactor swap_columns method 2025-04-19 00:43:00 +01:00
Palash Tyagi
0b2443d794 add matrix module with submodules for mat, seriesops, and boolops 2025-04-18 22:37:53 +01:00
Palash Tyagi
c52d36ff36 add BoolOps trait and BoolMatrix implementation for boolean operations 2025-04-18 22:36:58 +01:00
Palash Tyagi
4f21290b1c add SeriesOps trait and implementations for FloatMatrix to support axis-based operations 2025-04-18 22:36:46 +01:00
Palash Tyagi
a161cf0c76 add Matrix<T> struct with core functionality for 2D matrix operations 2025-04-18 22:33:53 +01:00