diff --git a/src/Interface.jl b/src/Interface.jl index 013166e..8000671 100644 --- a/src/Interface.jl +++ b/src/Interface.jl @@ -141,6 +141,14 @@ function setPointsMani!(dest::AbstractArray{T}, src::AbstractArray{U}, destIdx, end end +function setPointsMani!(dest::AbstractArray{T}, src::AbstractArray{U}, destIdx) where {T <: AbstractArray, U <: Real} + if isbitstype(T) + dest[destIdx] = src + else + setPointsMani!(dest[destIdx], src) + end +end + #TODO ArrayPartition should work for now as it's an AbstractVector, but it won't remain mutable setPointsMani!(dest::AbstractVector, src::AbstractVector) = (dest .= src)