Skip to content

fix ArrayInterface.ismutable(::ArrayPartition) #128

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 2 commits into from
Jan 8, 2021

Conversation

KlausC
Copy link
Contributor

@KlausC KlausC commented Jan 7, 2021

A PartitionedArray should be considered "mutable" only, if all of its components are "mutable".
Therefore the ArrayInterface.ismutable has been specialized for this case.
This fixes a bug in SciML/OrdinaryDiffEq.jl#1322

Another question is the naming ArrayInteface.ismutable which collides with Base.ismutable and returns different results.

@ChrisRackauckas
Copy link
Member

Another question is the naming ArrayInteface.ismutable which collides with Base.ismutable and returns different results.

Yeah... ours came first and does the right thing though 😆

Agreed with Yingbo it should be a generated function and then it's good.

@ChrisRackauckas ChrisRackauckas merged commit af71939 into SciML:master Jan 8, 2021
@KlausC KlausC deleted the krc/ismutableArrayPartitions branch January 8, 2021 10:20
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.

3 participants