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 bb33f39 commit 3402cb5Copy full SHA for 3402cb5
src/array_partition.jl
@@ -71,8 +71,9 @@ end
71
Base.ones(A::ArrayPartition, dims::NTuple{N,Int}) where {N} = ones(A)
72
73
# mutable iff all components of ArrayPartition are mutable
74
-function ArrayInterface.ismutable(::Type{<:ArrayPartition{T,S}}) where {T,S}
75
- all(ArrayInterface.ismutable, S.parameters)
+@generated function ArrayInterface.ismutable(::Type{<:ArrayPartition{T,S}}) where {T,S}
+ res = all(ArrayInterface.ismutable, S.parameters)
76
+ return :( $res )
77
end
78
79
## vector space operations
0 commit comments