Repository navigation
Fix several mmread/mminfo bugs - #66
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #66 +/- ##
==========================================
+ Coverage 89.40% 94.82% +5.42%
==========================================
Files 4 4
Lines 151 174 +23
==========================================
+ Hits 135 165 +30
+ Misses 16 9 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…tring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pass infoonly/retcoord through correctly when reading by filename, accept any AbstractString, and close the file on error via open_mm. - Expand symmetric matrices with transpose, hermitian with adjoint and skew-symmetric with -transpose, so complex symmetric input is no longer conjugated. In-place broadcasting keeps the element type (Bool stays Bool). - Read only the stored lower triangle of symmetric, hermitian and skew-symmetric dense arrays instead of rows*cols values. - Parse complex dense arrays, keep real/integer dense arrays as Float64, reject pattern arrays, and tolerate surrounding whitespace and CRLF. - Add offline tests in test/read.jl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ViralBShah
force-pushed
the
vs/read-fixes
branch
from
October 27, 2026 13:46
c37559c to
6ec3974
Compare
ViralBShah
referenced
this pull request
Oct 27, 2026
Speed up mmread/mmwrite (≈3× faster sparse reads)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
mmread(file, false, true)returned the header tuple instead of the coordinates, becauseretcoordwas passed into theinfoonlyslot.symmetricmatrices came back conjugated. Symmetric now mirrors withtranspose, hermitian withadjoint, and skew-symmetric with-transpose.arrayfiles with symmetric, hermitian or skew-symmetric storage crashed. They store only the lower triangle.complexarrays crashed. Densepatternarrays now throwFileFormatException.mminfo/mmreadloop forever.AbstractStringand close the file and gzip stream on error.FileFormatException.Dense
integerarrays still read asFloat64, to avoid a breaking change.Adds offline tests in
test/read.jl.🤖 Generated with Claude Code