Open xugng opened 6 years ago
I agree that your proposal has benefits, but I'm not sure they're worth the additional duplication. Any user error mixing different argument types should be easily caught by tests. Migration efforts could be easily reduced by using right tools for refactoring. The argument order would take time to be used to, but it's only the position of the mask argument that changes.
I would reconsider my opinion if more people say that they think it's worth to have this API in libsimdpp.
+1
If you make a first implementation (eg for any_vec8) as an exemple may over people could do the over Anyway if not i will jump on blend implementation :)
i plan to convert my projects from boost.simd to libsimdpp and I found that blend is very inconvenient to use. Can we introduce if_else with same semantics as in boost.simd? The advantages:
Possible signatures:
Same for uint16, int16, mask_int16, uint32, int32, mask_int32, float32, mask_float32, float64, mask_float64.