Skip to content

Fix deserialization of SMat with trailing zero cols#5850

Merged
antonydellavecchia merged 1 commit intooscar-system:masterfrom
lgoettgens:lg/deserialize-empty-smat
Mar 10, 2026
Merged

Fix deserialization of SMat with trailing zero cols#5850
antonydellavecchia merged 1 commit intooscar-system:masterfrom
lgoettgens:lg/deserialize-empty-smat

Conversation

@lgoettgens
Copy link
Copy Markdown
Member

This fixes #5849.

However, what I add here seems more like a hack. I would prefer if the SMatSpace had some proper interface to do these things (or even to do them automatically), but this is an immediate fix to the issue that can be cleaned up eventually.

@lgoettgens lgoettgens added serialization release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes bug: wrong result labels Mar 9, 2026
@joschmitt joschmitt changed the title Fix deserilization of SMat with trailing zero cols Fix deserialization of SMat with trailing zero cols Mar 9, 2026
Copy link
Copy Markdown
Collaborator

@antonydellavecchia antonydellavecchia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good given the circumstances

@antonydellavecchia antonydellavecchia merged commit dd4be64 into oscar-system:master Mar 10, 2026
39 checks passed
@benlorenz benlorenz mentioned this pull request Mar 23, 2026
26 tasks
benlorenz pushed a commit that referenced this pull request Mar 23, 2026
Kazak-11 pushed a commit to Kazak-11/Oscar.jl that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.7.x done bug: wrong result release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero columns in sparse matrices (SMat) get lost during serialization

3 participants