We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3c643 commit 6e1a946Copy full SHA for 6e1a946
src/wrappers.jl
@@ -19,7 +19,9 @@ function eachstoredparentindex(a::SubArray)
19
end
20
21
function storedvalues(a::SubArray)
22
- return @view parent(a)[collect(eachstoredparentindex(a))]
+ # We use `StoredValues` rather than `@view`/`SubArray` so that
23
+ # it gets interpreted as a dense array.
24
+ return StoredValues(parent(a), collect(eachstoredparentindex(a)))
25
26
function isstored(a::SubArray, I::Int...)
27
return isstored(parent(a), Base.reindex(parentindices(a), I)...)
0 commit comments