Using views slows down my code

I don’t think the allocations are coming from FFTW. Try

@views ψ[i+1, :] .= T2(ψ[i,:],W, 1.0/M, F, F̃)

(note the .=)

3 Likes