Closed JanJereczek closed 2 months ago
A = rand(700, 700)
A_ = 1 ./ A
@btime 3.0 ./ $A
290.679 μs (2 allocations: 3.74 MiB)
@btime 3.0 .* $A_
283.003 μs (2 allocations: 3.74 MiB)
Only minor improvement. Not applying this change in favor of more legible code.
For instance, currently:
New:
Can improve performance without any effort.