Hi, 

What's the best way to typecheck that an array is of floats, but any 
precision is OK?  I've found it useful to do this because a number of 
operations fail when given integer vector inputs (for example, 10.^[-3:3]).

I noticed that

x::Vector{FloatingPoint}

does not seem to cover them.  I ended up doing

FloatVec = Union(Vector{Float32}, Vector{Float64})

which seems slightly ugly given that I'd like that type in many different 
places.  Is there a better way?

Thanks, Brendan

Reply via email to