Use higher precision for linspace with double (#3029)

This commit is contained in:
Awni Hannun
2026-01-21 06:20:50 -08:00
committed by GitHub
parent 9a277a277a
commit 1d56dfdf59
3 changed files with 17 additions and 4 deletions
+2
View File
@@ -259,6 +259,8 @@ nb::object tolist(mx::array& a) {
return to_list<float>(a, 0, 0);
case mx::bfloat16:
return to_list<mx::bfloat16_t, float>(a, 0, 0);
case mx::float64:
return to_list<double>(a, 0, 0);
case mx::complex64:
return to_list<std::complex<float>>(a, 0, 0);
default: