Draft: correction of float typehints as well as float casting
several locations were using the float typehint instead of np.float32 | np.float64 as well as casting to float instead of backend.float
several locations were using the float typehint instead of np.float32 | np.float64 as well as casting to float instead of backend.float