Open
Description
The scalar math (now) does some casting, and also the normal cast functions in lowlevel_strided_loops.c.src
are heavily templated and complicated.
It would seems useful to create static inline functions for these (probably via C++ templating now). That way we can simplify all casting code paths in one go.
See also #21188 (comment) and the discussion on that PR.