For automatic differentiation, this will not be a Vector{Float32}. Instead, just create “type-matching” arrays. For example, out = similar(u).
2 Likes
For automatic differentiation, this will not be a Vector{Float32}. Instead, just create “type-matching” arrays. For example, out = similar(u).