We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad546e commit d17eb0cCopy full SHA for d17eb0c
src/lib.rs
@@ -406,6 +406,16 @@ pub fn prepare_array_for_axis<'py>(
406
array: PyReadonlyArray2<'py, bool>,
407
axis: isize,
408
) -> PyResult<PreparedBool2D<'py>> {
409
+
410
+ // let shape = array.shape();
411
+ // let slice = array.as_slice().unwrap();
412
+ // return Ok(PreparedBool2D {
413
+ // data: unsafe { std::mem::transmute(slice) }, // &[bool] → &[u8]
414
+ // nrows: shape[0],
415
+ // ncols: shape[1],
416
+ // _keepalive: None,
417
+ // });
418
419
if axis != 0 && axis != 1 {
420
return Err(PyValueError::new_err("axis must be 0 or 1"));
421
}
0 commit comments