nalgebra/nalgebra-sparse/src
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
..
convert CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
coo Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
csc Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
csr Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
factorization Revert "Updated more error messages" 2022-01-11 10:35:07 +01:00
io using no_run in doc code example 2021-12-17 14:48:14 +01:00
ops Revert "Updated more error messages" 2022-01-11 10:35:07 +01:00
pattern Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
coo.rs Move sparse matrix serialization to separate files 2022-01-11 10:35:07 +01:00
cs.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
csc.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
csr.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
lib.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
matrixcompare.rs Fix some warnings 2021-07-27 19:24:55 -04:00
pattern.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00
proptest.rs Remove redundant proptest patch 2021-12-01 12:44:07 +01:00
utils.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00