Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change write_raw default to sparse output format #1533

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

upsj
Copy link
Member

@upsj upsj commented Jan 17, 2024

This leads to a much better worst-case storage size (roughly 3x overhead instead of linear overhead) at the cost of slightly worse best case storage requirement.

Since this is only a utility function, it shouldn't matter much.

@ginkgo-bot ginkgo-bot added reg:testing This is related to testing. mod:core This is related to the core module. labels Jan 17, 2024
@upsj upsj requested a review from a team January 17, 2024 15:47
@upsj upsj self-assigned this Jan 17, 2024
@upsj upsj added the 1:ST:ready-for-review This PR is ready for review label Jan 17, 2024
layout_type layout = layout_type::array);
layout_type layout = layout_type::coordinate);
Copy link
Member

Choose a reason for hiding this comment

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

I think we use array as default in the beginning to keep the same behavior as the old interface:
void write_raw(std::ostream& os, const matrix_data<ValueType, IndexType>& data);
but it should not be public interface break with this change

@upsj upsj added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels Jan 18, 2024
This leads to a much better worst-case storage size (roughly 3x overhead instead of linear overhead) at the cost of slightly worse best case storage requirement.

Since this is only a utility function, it shouldn't matter much.
@upsj upsj merged commit 717f24e into develop Jan 18, 2024
13 of 15 checks passed
@upsj upsj deleted the write_raw_sparse branch January 18, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1:ST:ready-to-merge This PR is ready to merge. mod:core This is related to the core module. reg:testing This is related to testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants