lukas
b37eeee636
add mutable triplet iter
2022-09-30 19:49:47 -07:00
lukas
498fbf51b1
remove unnecessary trait bounds
2022-08-20 00:09:12 -07:00
lukas
0eb1f5c125
'fix error's
2022-08-16 20:10:17 -07:00
Lukas Hermann
b9483ab545
remove bad return type
2022-08-16 22:06:43 +00:00
lukas
bdfa643e3c
clear_triplets
2022-08-16 00:15:03 -07:00
lukas
bcc5527baa
Switch return type to just T
2022-08-15 19:28:58 -07:00
lukas
b90dc7c042
Add clear_triplet()
2022-08-15 19:14:38 -07:00
Sébastien Crozet
54ab62d971
Remove another unused extern crate.
2022-07-30 18:19:17 +02:00
Andreas Longva
80e77d2f9f
Fix formatting
2022-06-13 09:55:16 +02:00
Andreas Borgen Longva
030f155dc3
Merge branch 'dev' into matrixmarket-io
2022-06-13 09:51:08 +02:00
Andreas Longva
037226bb1f
Use ? instead of unwrap() in examples
2022-05-09 10:02:26 +02:00
Andreas Longva
59421896ce
Polish docs for save_* matrix market methods
2022-05-09 09:59:09 +02:00
Andreas Longva
9b32195558
Change write -> save in order to be consistent with load terminology
2022-05-09 09:51:55 +02:00
Andreas Longva
ef9a3dd767
Update module-level docs
2022-05-09 09:23:42 +02:00
Hantao Hui
8424232dfb
merge updates from dev branch
2022-05-07 13:46:52 +02:00
Hantao Hui
31fc498182
use tempdir to write matrix when running test
2022-05-07 13:40:25 +02:00
Saurabh
f77e12ff2f
add checks to make sure access won't be out of bounds
2022-04-22 12:15:59 -06:00
Andreas Borgen Longva
3981857f2b
Merge branch 'dev' into matrixmarket-io
2022-04-22 08:57:06 +02: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
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
Hantao Hui
8e48d26767
add more tests; use bufwritter; fix typo; use temp_dir to test with files
2022-03-21 12:19:34 +01: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
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
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
Hantao Hui
0cae584262
use writeln! macro; replace unsafe with expect
2022-02-25 18:10:34 +01: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
Hantao Hui
9e0dfd14de
use std::io::Write trait when export to matrix market
2022-02-13 21:16:16 +01:00
Hantao Hui
8904c01c7b
export to file directly; add a new trait for export
2022-02-03 11:49:15 +01:00
Hantao Hui
d511e372de
add support for matrix market export
2022-01-24 23:17:30 +01: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
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