Speed of vectorized vs for-loops using Zygote

That’s expected with the current Zygote. I would swap out to ReverseDiff.jl with tape compilation if you’re doing a lot of scalar computations.

1 Like