nalgebra/nalgebra-sparse/tests/unit_tests
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
..
cholesky.proptest-regressions Add proptest regressions 2021-01-26 10:11:24 +01:00
cholesky.rs Add CscCholesky::solve and ::solve_mut 2021-01-26 10:11:24 +01:00
convert_serial.proptest-regressions Add proptest regressions 2021-01-26 10:11:24 +01:00
convert_serial.rs rustfmt 2021-01-26 10:11:24 +01:00
coo.rs COO: add push_matrix fn 2021-06-08 10:05:50 -04:00
csc.proptest-regressions Add proptest regressions 2021-01-26 10:11:24 +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
matrix_market.rs fix for empty dense matrix 2021-12-13 09:28:28 +01:00
mod.rs Make nalgebra-sparse unit tests require io feature 2021-12-01 11:26:51 +01:00
ops.proptest-regressions Implement lower/upper triangular solve for CSC matrices 2021-01-26 10:11:24 +01:00
ops.rs rustfmt 2021-01-26 10:11:24 +01:00
pattern.rs rustfmt 2021-01-26 10:11:24 +01:00
proptest.rs rustfmt 2021-01-26 10:11:24 +01:00
test_data_examples.rs CSC: Create constructor for unsorted but otherwise valid data (#1015) 2022-03-03 10:14:16 +01:00