ForwardDiff.jl and its Dual Type question

Generally vec just converts to a vector, w/o affecting the type. Eg

julia> vec(fill(1, 2, 3))
6-element Array{Int64,1}:
 1
 1
 1
 1
 1
 1

It is documented here.

1 Like