Commit Graph

22 Commits

Author SHA1 Message Date
Andreas Longva 80e77d2f9f Fix formatting 2022-06-13 09:55:16 +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 31fc498182 use tempdir to write matrix when running test 2022-05-07 13:40:25 +02: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
Hantao Hui 0cae584262 use writeln! macro; replace unsafe with expect 2022-02-25 18:10:34 +01: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
Hantao Hui 96b65c430f using no_run in doc code example 2021-12-17 14:48:14 +01:00
Hantao Hui 656180f40e fix for empty dense matrix 2021-12-13 09:28:28 +01:00
Hantao Hui 92b324c007 code fmt; fix failing unit test and doc test 2021-12-12 12:10:20 +01:00
Andreas Longva e2820316a8 Fix typos 2021-12-01 12:17:47 +01:00
Andreas Longva 4569484aa0 Line breaks 2021-12-01 12:08:42 +01:00
Andreas Longva e3d1119bff Hide MatrixMarketScalar implementation details for now
The existing MatrixMarketScalar is relatively closely tied to the way
oru parser is implemented. I've moved these internals into an internal
trait and sealed the public trait.

This makes it less flexible for users for now, but gives us more freedom
to change internals in the future.
2021-12-01 11:45:11 +01:00
Andreas Longva 93f3d60005 Remove From<pest::Error> for MatrixMarketError
We want pest to remain an internal implementation detail, so it should
not leak into the public API.
2021-12-01 11:33:08 +01:00
Andreas Longva 3b67afcd9b Matrix market: Extend and reword documentation, rename some types 2021-12-01 11:07:13 +01:00
Hantao Hui 920bd75b82 fix typo 2021-11-18 11:42:47 +01:00
Hantao Hui 332fe8c0e4 update loading matrix market, including:
1. Several renamings
2. removed unnecessary traits
3. added support for dense matrix
4. removed unnecessary comparison when reading data line by line. (e.g.
   only read header line once)
2021-11-17 16:41:10 +01:00
Hantao Hui 7f9128c92d added reading matrix market data to sparse coomatrix 2021-11-02 10:59:59 +01:00