I have a vector v and a scalar s (either float or double). I am looking for a func that will achieve min(v, s) in Accelerate, that should return a vector u, such that
u[0] = min(v[0], s)
u[1] = min(v[1], s)
etc.
I browsed thru the documentation, i only see in vDSP that take in 2 vectors min(v, v). Although, i can indirectly create a vector of same length with repeating element of s, and then call this API. But i think that will be inefficient.