Skip to content

fix ArrayInterface.ismutable(::ArrayPartition) - #128

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
KlausC:krc/ismutableArrayPartitions
Jan 8, 2021
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
KlausC:krc/ismutableArrayPartitions

Conversation

@KlausC

@KlausC KlausC commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

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.

Comment thread src/array_partition.jl Outdated
@ChrisRackauckas

Copy link
Copy Markdown
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