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 095a9d1 commit 0ed3a82Copy full SHA for 0ed3a82
src/utils.jl
@@ -1,9 +1,8 @@
1
# overload for array types that
2
-@inline supports_fast_scalar_indexing(::Array) = true
+@inline supports_fast_scalar_indexing(::StridedArray) = true
3
4
@inline function supports_fast_scalar_indexing(x::AbstractArray)
5
- parent(x) === x && return false
6
- return supports_fast_scalar_indexing(parent(x))
+ return parent(x) !== x && supports_fast_scalar_indexing(parent(x))
7
end
8
9
# Helper function for broadcasting
0 commit comments