Even better, you can do v::AbstractArray{<:Real}
which will be just as efficient and will accept any array-like container.
Or if you want to accept any array-like container of exactly one dimension, you can do ::AbstractArray{<:Real, 1}
.
See Passing arrays with unspecified type - #2 by rdeits for related discussion.