Skip to content

Conversation

@AntonOresten
Copy link
Contributor

Closes #47

This PR defines a simple helper function to handle getting the pointer of wrapper types:

_pointer(arr::AbstractArray) = pointer(arr)
_pointer(arr::PermutedDimsArray) = pointer(parent(arr))

This is actually also needed for LinearAlgebra.Transpose, so if importing LinearAlgebra is fine, I could add that too.

As mentioned in #47, the current might be an upstream problem, but I think more generally it might be good to tackle support for different types here.

@AntonOresten AntonOresten changed the title Add support for PermutedDimsArray Add support for PermutedDimsArray Jan 22, 2026
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.

Passing PermutedDimsArray to kernel

1 participant