Closed kunyuan closed 1 year ago
This link gives an example of proper broadcast implementation https://github.com/JuliaArrays/BlockArrays.jl/blob/master/src/blockbroadcast.jl
There should be no allocation. In the above example, g .+= rand(100, 60) creates allocations because the right hand side creates new array
See the example below, g is a MeshArray of the size 100x60