mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-17 06:38:38 +08:00
Make array conform to the Python Buffer Protocol (#323)
This commit is contained in:
@@ -222,6 +222,8 @@ TEST_CASE("test array types") {
|
||||
|
||||
// complex64
|
||||
{
|
||||
CHECK_EQ(sizeof(complex64_t), sizeof(std::complex<float>));
|
||||
|
||||
complex64_t v = {1.0f, 1.0f};
|
||||
array x(v);
|
||||
CHECK_EQ(x.dtype(), complex64);
|
||||
|
Reference in New Issue
Block a user