Closed awni closed 1 week ago
Closes #1066
This is kind of a nanobind issue but one that they have refused to fix in the past.
np.ndarray
std::complex<float>
to_array
np.ndarrays
mx.array
nb::ndarray
array
Closes #1066
This is kind of a nanobind issue but one that they have refused to fix in the past.
np.ndarray
is implicitly convertible to astd::complex<float>
so ourto_array
was allowing that.np.ndarrays
instead I added it as a member in the variant.mx.array
gets implicitly converted tonb::ndarray
because of the buffer protocol.array
as a member of the variant.