Closed minghuaw closed 3 months ago
This allows creating array with up to 3 dims using the macro array!
array!
use mlx_rs::array; // Create a 1D array let a1 = array![1, 2, 3]; // Create a 2D array let a2 = array![ [1, 2, 3], [4, 5, 6] ]; // Create a 3D array let a3 = array![ [ [1, 2, 3], [4, 5, 6] ], [ [7, 8, 9], [10, 11, 12] ] ];
crate::macros::array
This allows creating array with up to 3 dims using the macro
array!
Dependencies
The macro is expected to move to(already moved in 15e7f30)crate::macros::array
once #69 is merged