ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations

Results 209 ndarray issues
Sort by recently updated
recently updated
newest added
trafficstars

Running `MIRIFLAGS="-Zmiri-tag-raw-pointers" cargo miri test test_map_axis` yields this stack trace ```rust test test_map_axis ... error: Undefined Behavior: trying to reborrow for SharedReadOnly at alloc186627+0xc, but parent tag does not have...

bug

Running the following code... ```rust let z: Array1 = arr1(&[1,0,1]) - arr1(&[0,1,0]); ``` ...causes a panic with `attempt to subtract with overflow'` Would it be possible to get support for...

This is something I've wanted for a long time; it allows for creation of const `ArrayView`s. With Rust 1.57, it's now possible. (This was blocked on the ability to panic...

enhancement
breaking-change

While reviewing #1130, I noticed these missing checks introduced in #980. In the first commit, the new `deny_slice_with_too_many_rows_to_arrayview*2` tests fail in release mode. The second commit fixes the code so...

bug

How to make matrices with a constant off-diagonal? https://numpy.org/devdocs/reference/generated/numpy.eye.html

It is best to be "complete" with implementations when possible, since it can always be a breaking change to add it later. As shown in the test change in this...

enhancement

- In some cases we can modify the iterator without changing produced element order - for example changing shape [10, 1] to shape [1, 10] - In some cases we...

Hi thanks for the lib! Context: I have a color image `Array2`, and want to visualize it using rust-numpy lib (a binding to python numpy). However, `.to_pyarray()` complains, so I...

enhancement

``` error[E0277]: the trait bound `[std::ops::Range; 1]: ndarray::SliceNextDim` is not satisfied --> src/tiler.rs:59:25 | 59 | input.slice(ndarray::s!([2..3])); | ^^^^^^^^^^^^^^^^^^^ the trait `ndarray::SliceNextDim` is not implemented for `[std::ops::Range; 1]` | note:...

Hi thanks for the lib! When I made a bug and access index out of bound (e.g. `arr.slice(s![a..b, c..d])`), I see: ``` Slice begin 16744 is past end of axis...