Avi Weinstock
317aef574a
Implement `hstack` and `vstack`.
...
The implementation uses a trait to fold over tuples, summing the
dimensions in one direction and checking for equality in the other, and
then uses `fixed_{rows,columns}_mut` if the dimensions are static, or
`{rows,columns}_mut` if the dimensions are dynamic, together with
`copy_from` to construct the output matrix.
2023-01-30 23:14:20 -05:00
Crozet Sébastien
0490a844fb
Fix typo
2021-05-24 18:10:26 +02:00
Crozet Sébastien
d6d2a3e968
Fix macros tests.
2021-05-24 18:00:30 +02:00
Crozet Sébastien
8810b85a2f
Add a point! macro for construction points
...
This macro is similar to the `vector!` macro, except that it builds a point instead of a vector.
2021-05-24 17:53:59 +02:00
Andreas Longva
39b275fc92
Formatting
2021-05-05 10:04:47 +02:00
Andreas Longva
6026a05433
Test that matrix macros work with arbitrary expressions
2021-05-05 10:03:18 +02:00
Andreas Longva
57541aa253
Add tests to ensure macros compile for all built-in types
2021-05-05 09:42:31 +02:00
Andreas Longva
8552fc8385
Cargo fmt
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
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