Is this using @set correctly?
function test3(gt)
for t in 1:90
gt = map(gt) do x
x = @set x.min .+= x.act
x = @set x.fat .-= x.act .* (x.ded .- rand.(Uniform(-0.003, 0.003)))
x = @set x.fat .= max.(x.fat, 0.1)
x = @set x.sh_cm .= x.sh_c0 .* x.fat .* x.act
x = @set x.ps_cm .= x.ps_c0 .* x.fat .* x.act
x = @set x.tk_cm .= x.tk_c0 .* x.fat .* x.act
return x
end
end
return gt
end
It gives the same benchmarks as @reset, so the manually unrolled loop still wins.