Commit Graph

1914 Commits

Author SHA1 Message Date
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 08a77dd05e Test nalgebra-macros on CI 2021-05-03 13:52:34 +02:00
Andreas Longva 041b8c4b2c Add macro sanity tests to macros 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 eeab4db69a Add nalgebra/macros feature and re-export matrix macros from nalgebra 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 d2c11ad797 Impl DMatrix/DVector::from_vec_storage
These methods enable safe & const construction of DMatrix/DVector from a
given VecStorage.
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
Sébastien Crozet e8d00887e0
Merge pull request #884 from chammika-become/missing-doc-tests
add missing doc tests
2021-05-02 14:27:11 +02:00
Chammika Mannakkara 105e894c0a add missing doc tests 2021-05-02 13:50:03 +09:00
Crozet Sébastien 58bea21d74 Release v0.26.2 2021-04-27 14:26:09 +02:00
Sébastien Crozet fb2147673b
Merge pull request #874 from dimforge/more_conversions
More conversions
2021-04-27 13:40:24 +02:00
Crozet Sébastien 0745384c21 Update changelog. 2021-04-27 13:29:15 +02:00
Crozet Sébastien d59d438189 Add more conversion for glam types
Add Isometry3 <-> (Vec3, Quat)
Add Isometry2 <-> (Vec3, Quat)
Add Translation2/3/4 <-> Vec2/3/4
2021-04-27 13:21:46 +02:00
Crozet Sébastien 65b94ccb91 Add more conversions for translations
Add [T; D] <-> Translation<T, D>
Add Point<T, D> -> Translation<T, D>
2021-04-27 13:17:51 +02:00
Crozet Sébastien db27a080f1 Cleanup conversions between points and static vectors. 2021-04-27 13:17:12 +02:00
Crozet Sébastien 09be376cd9 Add more conversion for Isometry
Add [T; D] -> Isometry<T, R, D>
Add SVector<T, D> -> Isometry<T, R, D>
Add Point<T, D> -> Isometry<T, R, D>
2021-04-27 13:16:44 +02:00
Crozet Sébastien 43cf22af28 Cleanup conversion between static arrays and static matrices. 2021-04-27 13:16:01 +02:00
Crozet Sébastien 984bb1a639 Fix const-generics blog post url in the changelog. 2021-04-12 18:15:16 +02:00
Crozet Sébastien 28bfb4ad6d Update Changelog. 2021-04-12 17:54:06 +02:00
Crozet Sébastien 3ec57016b9 Release v0.26.1 2021-04-12 17:52:59 +02:00
Sébastien Crozet 9e5e8e7b94
Merge pull request #870 from dimforge/dvector_serialize
Fix serialization of DVector
2021-04-12 17:52:10 +02:00
Crozet Sébastien f70e7f77d1 Fix serialization of DVector 2021-04-12 17:43:04 +02:00
Crozet Sébastien c5c6c139ab Release v0.26.0 2021-04-12 16:15:08 +02:00
Sébastien Crozet 230f1a81a0
Merge pull request #868 from dimforge/serde-no-std
Don't enable serde by default.
2021-04-12 15:12:03 +02:00
Crozet Sébastien 9aa3c1e449 Add comment about the serde-serialize-no-std feature. 2021-04-12 14:36:55 +02:00
Crozet Sébastien 95b021dbfb Don't enable serde by default.
Don't enable `serde/std` by default.
Add a `serde-serialize-no-std` feature to enable serde without its default features.
2021-04-12 12:14:16 +02:00
Sébastien Crozet ee2e0be7cb
Merge pull request #820 from dimforge/min_const_generics
Integrate min-const-generics.
2021-04-12 11:41:29 +02:00
Crozet Sébastien ee1c0be2dd Add a note about the PhantomData in Matrix. 2021-04-12 11:27:21 +02:00
Crozet Sébastien 2bef19ed5c Deprecate the MatrixN alias. 2021-04-12 11:15:01 +02:00
Crozet Sébastien 7ec4497f92 Fix wrong alias. 2021-04-12 11:06:13 +02:00
Crozet Sébastien b8811d3545 Fix compilation of benchmarks 2021-04-12 10:52:17 +02:00
Crozet Sébastien 73cc9882b2 Fix compilation of nalgebra-lapack 2021-04-12 10:35:35 +02:00
Crozet Sébastien 5a1dbfe37d Use explicit storage names in matrix aliases. 2021-04-12 10:34:15 +02:00
Crozet Sébastien bc7db9d139 Mark as const-fn some constructors of Point, Translation, Quaternion 2021-04-12 10:32:17 +02:00
Crozet Sébastien bedf48dbc2 Mark small matrix/vector "new" constractors as const-fn. 2021-04-12 09:18:17 +02:00