Skip to content

MutableShiftedArray#69

Closed
RainerHeintzmann wants to merge 12 commits intoJuliaArrays:masterfrom
RainerHeintzmann:MutableArrays
Closed

MutableShiftedArray#69
RainerHeintzmann wants to merge 12 commits intoJuliaArrays:masterfrom
RainerHeintzmann:MutableArrays

Conversation

@RainerHeintzmann
Copy link
Contributor

This PR includes the changes of the other PR. It thus contains CUDA support.
In addition a new datatype MutableShiftedArray is added, which is essentially copy-paste of the code of the ShiftedArray type. However it supports the setindex! function.
An alternative could have been to simply add the setindex! function to the ShiftedArray type, but this can potentially lead to backwards compatibility issues, which is why I opted for this version with another type.
The CUDA Adapt methods of this new type are also supported and I added some tests for the mutatation operation.
Note that mutation of places hosting the default type, are silently ignored. Which is what the typical use-case would want. However, it does feel slightly odd and may lead to trouble for some code which relies on the fact that a mutation really changes a place and a subsequent read operation reflects this change.

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.

1 participant