Commit Graph

2314 Commits

Author SHA1 Message Date
sterlingjensen
ba7efb52b0 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-05-03 14:41:59 -06:00
Sébastien Crozet
213a9fbd21 Use cust_core instead of cust 2022-05-03 14:41:59 -06:00
Sébastien Crozet
dd471d7a7e CI: set the CUDA_ARCH env var when targetting nvptx 2022-05-03 14:41:59 -06:00
Sébastien Crozet
f3b1044375 CI: pin the version of Cuda 2022-05-03 14:41:59 -06:00
Sébastien Crozet
f6f49c510c Update to cust 0.3 2022-05-03 14:41:59 -06:00
Saurabh
f77e12ff2f add checks to make sure access won't be out of bounds 2022-04-22 12:15:59 -06:00
Saurabh
19c7f19afa fix tests 2022-04-01 15:26:55 -06:00
Saurabh
e3fd0e7393 remove the checked suffix to keep backward compatibility 2022-04-01 15:26:36 -06:00
Saurabh
2606409a02 delete example and remove compiler optimisation flags 2022-04-01 15:26:18 -06:00
Saurabh
04a97bb79e Merge branch 'dev' of https://github.com/dimforge/nalgebra into dev 2022-03-21 16:57:32 -06:00
Saurabh
d1674d7577 Mul trait goes to faster kernel, pattern is correct 2022-03-21 16:56:51 -06:00
Saurabh
f795f0f872 tests don't need to test the unchecked kernel separately 2022-03-21 16:56:22 -06:00
Saurabh
c6f832d1d8 put back checked kernels and refactor upper layer 2022-03-21 16:55:46 -06:00
Saurabh
6d26f4f32c Merge branch 'dev' of github.com:smr97/nalgebra into dev 2022-03-12 15:12:32 -07:00
Saurabh
b19f0d7473 unnecessary index information 2022-03-12 15:04:08 -07:00
Saurabh
a2422ee02b filter out only matrix files 2022-03-12 15:04:08 -07:00
Saurabh
424207914b run over a directory 2022-03-12 15:04:08 -07:00
Saurabh
8c1186db3c Added missing example file 2022-03-12 15:04:08 -07:00
Saurabh
ff3d1e4e35 prealloc everything, remove hashset, make it 4x faster 2022-03-12 15:04:08 -07:00
Saurabh
e7d8a00836 add spmm example and change the kernel 2022-03-12 15:04:08 -07: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
Saurabh
46a757fc42 Added missing example file 2022-02-26 18:24:24 -07:00
Saurabh
0d2437b5c8 Merge branch 'dev' of https://github.com/dimforge/nalgebra into dev 2022-02-23 14:58:05 -07:00
Saurabh
1323b37607 prealloc everything, remove hashset, make it 4x faster 2022-02-18 11:22:43 -07:00
Saurabh
776fef26c3 add spmm example and change the kernel 2022-02-15 17:38:20 -07: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