mlx_rs::opsFunction at_least_3d
Source pub fn at_least_3d(a: impl AsRef<Array>) -> Result<Array>
Expand description
Convert array to have at least three dimensions.
§Params
§Example
use mlx_rs::{Array, ops::*};
let x = Array::from_int(1);
let out = at_least_3d(&x);