Commit Graph

16 Commits

Author SHA1 Message Date
Andreas Longva
f42ecf0ebb Improve nalgebra-macros/Cargo.toml metadata 2021-05-05 08:51:16 +02:00
Andreas Longva
8552fc8385 Cargo fmt 2021-05-03 13:52:34 +02:00
Andreas Longva
0bde07f95c Document that feature needs to be enabled, and require macros feature for tests 2021-05-03 13:52:34 +02:00
Andreas Longva
b96c75549d Document macros 2021-05-03 13:52:34 +02:00
Andreas Longva
da077497a2 Add trybuild tests to test error message reported when matrix dims mismatch 2021-05-03 13:52:34 +02:00
Andreas Longva
07d41e457b vector! and dvector! macros 2021-05-03 13:52:34 +02:00
Andreas Longva
d56db1a079 Assert type in matrix/dmatrix tests 2021-05-03 13:52:34 +02:00
Andreas Longva
5c843022c2 Implement dmatrix![] macro 2021-05-03 13:52:34 +02:00
Andreas Longva
9142dc8f84 Implement SMatrix::from_array_storage and use it in matriX! impl
This allows us to avoid injecting unsafe code into every macro
invocation, which seems desirable.
2021-05-03 13:52:34 +02:00
Andreas Longva
7098a4f07e Test that matrix![] can be used with const 2021-05-03 13:52:34 +02:00
Andreas Longva
ec2a5a3909 Construct ArrayStorage directly in matrix![] 2021-05-03 13:52:34 +02:00
Andreas Longva
e60136fbb1 Update nalgebra-macros to nalgebra 0.26 and const generics 2021-05-03 13:52:34 +02:00
Andreas Longva
1dccdb1f20 Exhaustive tests for small dimensions 2021-05-03 13:52:34 +02:00
Andreas Longva
ed833506a9 Fix warnings, refactor code 2021-05-03 13:52:34 +02:00
Andreas Longva
ab95cf7020 Initial impl using syn and quote 2021-05-03 13:52:34 +02:00
Andreas Longva
e97692255b Initial hacked together prototype without syn 2021-05-03 13:52:34 +02:00