Avi Weinstock
90010b1a50
Implement HStackLazy and VStackLazy, allowing for the removal of intermediate allocations when building a matrix with a mix of horizontal and vertical stacking.
2023-02-05 16:58:59 -05:00
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
Sébastien Crozet
8e5e54d196
Bump version of nalgebra-macros
2023-01-14 17:55:56 +01:00
Sébastien Crozet
8aa34a952f
Release v0.32.0
2023-01-14 17:04:22 +01:00
Sébastien Crozet
711ac67da9
Deplecate Dynamic and Dynamic::new
2023-01-14 16:22:40 +01:00
Sébastien Crozet
b656faa233
Release v0.31.0
2022-04-30 10:59:26 +02:00
sterlingjensen
724117e5ad
Cleanup examples and doc links
...
Close example code fences and normalize containing head line in touched files.
Remove stale reference to `slice_assume_init` (commit 8c6ebf27
), fix long dead internal links in deprecation notices.
2022-03-22 12:03:18 -05:00
Wanja Zaeske
104cb944b9
fix #1073 : typo in name of macros feature
2022-02-14 13:55:16 +01:00
Sébastien Crozet
e8b9c40123
Release v0.30.0
2022-01-02 15:30:15 +01:00
Sébastien Crozet
db63f6c031
Release v0.29.0
2021-08-08 17:54:35 +02:00
Rémi Lauzier
c35f792b4f
Fix some warnings
2021-07-27 19:24:55 -04:00
Crozet Sébastien
ca1297acfb
Release v0.28.0
2021-07-11 17:42:45 +02:00
Crozet Sébastien
dfc8ad3d6a
Release v0.27.0
2021-06-02 15:15:17 +02: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
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