Skip to content

Fix MTK.build_function on "arrays of sparse matrices" and "arrays of arrays of sparse matrices" #423

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

Merged
merged 5 commits into from
Jun 3, 2020
Merged

Conversation

wupeifan
Copy link
Contributor

@wupeifan wupeifan commented Jun 2, 2020

The original codes loop over all the elements in a sparse array instead of the non-zero elements.
Fixes #407 .

Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

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

Could you add tests?

@wupeifan
Copy link
Contributor Author

wupeifan commented Jun 2, 2020

Yep, later today

@wupeifan
Copy link
Contributor Author

wupeifan commented Jun 2, 2020

It turns out that we only need to revive one of the previous broken tests. @YingboMa

@ChrisRackauckas
Copy link
Member

even better!

@wupeifan
Copy link
Contributor Author

wupeifan commented Jun 3, 2020

Great, it seems that the tests pass.

@YingboMa YingboMa merged commit aea91f4 into SciML:master Jun 3, 2020
@wupeifan wupeifan deleted the fix_sparsearray branch June 3, 2020 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arrays of sparse matrices not sparse
3 participants