Commit Graph

2309 Commits

Author SHA1 Message Date
Sébastien Crozet
b621177a74
Merge pull request #1103 from dimforge/additional-glam-conversion
glam: add conversion from Vec2/3/4 to UnitVector2/3/4 + remove ambigous conversions
2022-04-28 15:11:51 +02:00
Sébastien Crozet
c9bf6aa95f Fix warnings 2022-04-28 14:58:15 +02:00
Sébastien Crozet
adb3820305 glam: add conversion from Vec2/3/4 to UnitVector2/3/4 + remove ambigous conversions 2022-04-28 14:53:14 +02:00
Sébastien Crozet
96d4d98811
Merge pull request #1094 from jsmith628/complex-slerp-fix
fix for `UnitComplex::slerp()` #1093
2022-04-26 18:26:27 +02:00
Sébastien Crozet
ee7473cba8 Readme: update sponsors 2022-04-18 10:45:38 +02:00
Joshua Smith
96e2d1f69e fixed cargo fmt 2022-03-29 13:42:38 -05:00
Joshua Smith
baa320d7f3 added tests for complex and quaternion slerp pathing 2022-03-29 13:38:10 -05:00
Joshua Smith
b02e4ec2a9 fixed cargo fmt error 2022-03-26 17:32:12 -05:00
Sébastien Crozet
6a553f1ee2
Merge pull request #1098 from dimforge/explicit-const-dims
Simplify the type definitions of Const aliases, to help rust-analyzer
2022-03-24 10:00:36 +01:00
Sébastien Crozet
77cf2c935f
Merge pull request #1096 from sterlingjensen/cleanupdoc
Cleanup examples and doc links
2022-03-24 10:00:24 +01:00
sterlingjensen
44b700ecdf run cargo fmt 2022-03-23 22:08:20 -05:00
Sébastien Crozet
aa37f28dda Simplify the type definitions of Const aliases, to help rust-analyzer 2022-03-23 22:55:16 +01:00
Sébastien Crozet
f081cea504
Merge pull request #1090 from dimforge/cust-0.3
Update to cust 0.3
2022-03-23 22:54:21 +01: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
Joshua Smith
27a349d282 fix for UnitComplex::slerp() #1093 2022-03-21 16:08:53 -05:00
Sébastien Crozet
d7117e228a Use cust_core instead of cust 2022-03-16 18:07:29 +01:00
Sébastien Crozet
30c0450075 CI: set the CUDA_ARCH env var when targetting nvptx 2022-03-11 18:06:40 +01:00
Sébastien Crozet
1c4c3de92e CI: pin the version of Cuda 2022-03-11 17:43:01 +01:00
Sébastien Crozet
6d89e2aca6 Update to cust 0.3 2022-03-11 17:17:40 +01:00
Sébastien Crozet
a46f172fe4
Merge pull request #1089 from YuhanLiin/fix-svd
Fix SVD instability bug
2022-03-10 09:33:45 +01:00
YuhanLiin
a27d121a7a Add regression test for #1072 2022-03-09 21:10:45 -05:00
YuhanLiin
1acd48f6f1 Address review comments 2022-03-09 21:04:43 -05:00
YuhanLiin
325618ba22 Fix SVD instability bug 2022-03-09 02:13:12 -05:00
Anton Arsenij
757b99e843
CSC: Create constructor for unsorted but otherwise valid data (#1015)
* CSC: Create constructor for unsorted but otherwise valid data

* Test creating csc matrix from unsorted but valid data

* Add function for validation and sorting

* Move validation function to cs.rs

* Restore pattern unit test

* Add unit test for 'major offset out of bounds' case

* Avoid permutation allocations on 'happy path'

* Reuse allocated permutation

* Fix comments for test-data examples

* Remove unnecessary iter variable

* Set up buffers for sorting up front

* Use common apply_permutation function

* Use common compute_sort_permutation function

* Move unsafe down to unchecked call

* Add panic cases to documentation

* Remove unnecessary Zero bound

* Move buffer set up away from loop

* Lift T::Zero from cs.rs

* Improve checking if values are provided

* Simplify copying from slices & add test for wrong values length

* Check duplicates after sorting

* Fix formatting

* Check values length at the beginning

* Check length of values if values != None
2022-03-03 10:14:16 +01:00
Sébastien Crozet
f637013aa0
Merge pull request #1077 from wucke13/dev
fix #1073: typo in name of macros feature
2022-02-14 14:20:00 +01:00
Wanja Zaeske
104cb944b9 fix #1073: typo in name of macros feature 2022-02-14 13:55:16 +01:00
Sébastien Crozet
39bb572557
Merge pull request #1074 from saethlin/remove-abomonation
Remove abomonation support
2022-02-07 09:31:40 +01:00
Ben Kimock
18730dd986 2022-02-06 10:03:22 -05:00
Ben Kimock
698e130c3b Remove abomonation support
Abomonation has numerous soundness problems which have been
well-documented in its issue tracker for over 2 years. Some of them
could be fixed, but some are fundamental to its design. If a user wants
super-fast ser/de, they should use rkyv.
2022-02-05 17:15:08 -05:00
Sébastien Crozet
7ade44dc1d
Merge pull request #1019 from w1th0utnam3/sparse_serde
Implement Serde Serialize/Deserialize for nalgebra-sparse types
2022-01-24 11:40:51 -08:00
Fabian Loeschner
99eb8c1589 Revert "Rename nrows/ncols args for try_from_*_data functions for consistency"
This reverts commit 2a3e657b56.
2022-01-13 10:28:00 +01:00
Fabian Loeschner
89f1e855bb Revert "Fix panic in SparsityPattern::try_from_* if major index is out of bounds"
This reverts commit 12afe2917af4c30fc4a17316e453d0830072642c to avoid conflict with #1015.
2022-01-11 10:35:07 +01:00
Fabian Loeschner
38989ed5f0 Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
Fabian Löschner
583fde05fe Add comment explaining intermediate types for serialization 2022-01-11 10:35:07 +01:00
Fabian Löschner
fe70a80e41 Partial revert "Use custom serde errors, make all sparse errs lowercase" 2022-01-11 10:35:07 +01:00
Fabian Loeschner
513178e03e Revert "Updated more error messages"
This reverts commit a42eae45e045c391ede37a7a4328c09cbbb87a0f.
2022-01-11 10:35:07 +01:00
Fabian Löschner
647455dadd Move serialization code to submodules 2022-01-11 10:35:07 +01:00
Fabian Löschner
837ded932e Replace usage of Cow with generic type 2022-01-11 10:35:07 +01:00
Fabian Löschner
49eb1bd778 CI: Run nalgebra-sparse builds with different feature sets, serde tests 2022-01-11 10:35:07 +01:00
Fabian Löschner
9b87fa4ffa Add cfg attribute to Cow imports 2022-01-11 10:35:07 +01:00
Fabian Löschner
a8fa7f71c0 Unify separate (de)serialization helper structs by using Cow<'a, [T]> 2022-01-11 10:35:07 +01:00
Fabian Loeschner
3be81be2e3 Updated more error messages 2022-01-11 10:35:07 +01:00
Fabian Loeschner
7e67d920a7 Use custom serde errors, make all sparse errs lowercase w/o punctuation 2022-01-11 10:35:07 +01:00
Fabian Loeschner
e9b7718292 Fix panic in SparsityPattern::try_from_* if major index is out of bounds 2022-01-11 10:35:07 +01:00
Fabian Loeschner
e2c33b48ac Simplify Deserialize bound 2022-01-11 10:35:07 +01:00
Fabian Loeschner
bfaf29393c Implement Serialize, Deserialize for SparsityPattern 2022-01-11 10:35:07 +01:00
Fabian Loeschner
2a3e657b56 Rename nrows/ncols args for try_from_*_data functions for consistency 2022-01-11 10:35:07 +01:00
Fabian Loeschner
40d8a904a3 Implement Serialize, Deserialize for Csc, Coo; move helper out of impls 2022-01-11 10:35:07 +01:00
Fabian Loeschner
18b694dad2 Move serialization helper structs into trait impls 2022-01-11 10:35:07 +01:00
Fabian Löschner
f9aca24b15 Implement Serialize and Deserialize for CsrMatrix 2022-01-11 10:35:07 +01:00