You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of mathematical functions from the STL convert their argument for integer to double and then rely on the overload for double (remainder, nearbyint, etc...).
xsimd should follow the same pattern when no equivalent more optimized implementation is possible. Generic functions for converting subset of integral batches to double batches should be added as part of the public API.
The text was updated successfully, but these errors were encountered:
do you think we should make that conversion implicit?
Actually no; the C++ runtime provides implicit conversions between builtin types for convenience, but these are usually source of warnings that lead to replace them with explicit conversions; so let's do it the right way and not provide implicit conversions.
However, I still think we should provide overloads of math functions for integral batches at some point.
A lot of mathematical functions from the STL convert their argument for integer to double and then rely on the overload for double (remainder, nearbyint, etc...).
xsimd
should follow the same pattern when no equivalent more optimized implementation is possible. Generic functions for converting subset of integral batches to double batches should be added as part of the public API.The text was updated successfully, but these errors were encountered: