Simple Matrix lib for Programming competency test
- Supported numerical types (
int
,long
,float
,double
,complex
,....) - Supported algebraic expressions including
+
and*
,+=
and*=
- fits in one header file
- provides test header in test directory
1. make or cmake CMakeLists.txt then make
2. To run ./bin/Simple_Matrix because output is inside bin
Type | Shape | Execution time (in ms) | Execution time for assignment (in ms) |
---|---|---|---|
int |
(1000,1000) | 37 | 44 |
complex |
(1000,1000) | 72 | 71 |
Type | Shape | Execution time (in ms) | Execution time for assignment (in ms) |
---|---|---|---|
int |
(1000,1000) | 36 | 44 |
complex |
(1000,1000) | 72 | 72 |
Type | Shape | Execution time for Direct (in ms) | Execution time for Lazy (in ms) | Execution time for Lazy assignment (in ms) |
---|---|---|---|---|
int |
(1000,1000) | 14618 | 13925 | 13312 |
complex |
(1000,1000) | 31407 | 32080 | 32121 |
- OS: MacOS
- Processor: 2.5 GHz Intel Core i7