Closed putianyi889 closed 3 years ago
This bug is specific to vectorized calls, thanks for reporting it. I already have a fix but I will need to wait a bit before pushing it to make sure it doesn't break interactions with other packages that I am currently testing.
For now, you should be able to use the map
function to get around this issue.
julia> map(e -> e + 1, CircularArray(rand(3,3)))
3×3 CircularArray(::Matrix{Float64}):
1.25159 1.76918 1.16795
1.54877 1.81786 1.57196
1.68487 1.82078 1.94709
I'm just using CircularArray(A .+ 1)
now. Thanks for reply.
This will be fixed in the next version. Thanks again for reporting it.
Operations on CircularArrays give usual Arrays instead: