Would return probably complex(1.2, 1.1). I think that would make the most sense in this case. Of course this is slow and should only happen once at the end of the routine but this would greatly improve the code clarity (in Bessels at least) when using SIMDMath in regular functions.
After we do the SIMD evaluations it is often times necessary to unpack or get certain elements from a simd Vec or ComplexVec.
For instance it would be nice if...
Would work and return either a Float64 or VecElement{Float64}. Likewise for complex it would be nice if
Would return probably complex(1.2, 1.1). I think that would make the most sense in this case. Of course this is slow and should only happen once at the end of the routine but this would greatly improve the code clarity (in Bessels at least) when using SIMDMath in regular functions.