Commit Graph

16 Commits

Author SHA1 Message Date
julianknodt
666b0fd2de Add try_from_triplets_iter
Calls `try_from_triplets` for now, and is mentioned in the documentation.
2023-08-22 22:19:42 -07:00
Andreas Longva
02caca0ece Update slice->view in nalgebra-sparse 2022-11-14 15:32:17 +01:00
lukas
e227dd693e Refactor unit tests 2022-10-10 19:05:47 -07:00
lukas
9a38c554af add test case 2022-10-02 11:57:37 -07:00
lukas
0eb1f5c125 'fix error's 2022-08-16 20:10:17 -07:00
lukas
41e1cc0db2 extend test case 2022-08-16 00:20:13 -07: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
Paul Jakob Schroeder
e6e7efba8a COO: add push_matrix fn
- This function allows one to add entire dense matrices
to a sparse COO matrix.
- Added a small mention of this new function in the
example in lib.rs
2021-06-08 10:05:50 -04:00
Andreas Longva
7473d54d74 rustfmt 2021-01-26 10:11:24 +01:00
Andreas Longva
41ce9a23df Remove CooMatrix::to_dense() and Scalar trait bound, add ::nnz() 2021-01-26 10:11:24 +01:00
Andreas Longva
a15e78a6b7 Put COO, CSR, SparsityPattern and related types in their own modules
This mimics how std does it, e.g. std::vec::Vec. This avoids potential
problems down the road, where adding more types might clutter the
API interface and generated documentation.
2021-01-26 10:11:24 +01:00
Andreas Longva
7a5f8ef1ea Redesign error handling for CSR and SparsityPattern construction
SparsityPattern's constructor now returns a fine-grained error
enum that enumerates possible errors. We use this to build a more
user-friendly error when constructing CSR matrices.

We also overhauled the main SparseFormatError error type by
making it a struct containing a *Kind type and an underlying error
that contains the message.
2021-01-26 10:11:24 +01:00
Andreas Longva
b0ffd55962 Initial CSR and SparsityPattern impls (WIP) 2021-01-26 10:11:24 +01:00
Andreas Longva
1dbccfeb7c Initial COO implementation 2021-01-26 10:11:24 +01:00