ndarray
ndarray copied to clipboard
ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
Before, the user could silently violate safety requirements of `SliceInfo::new_unchecked` by directly calling `s![@parse inconsistent_values]`, where `inconsistent_values` represents inconsistent values for the dimensions, etc. Now, the macro calls `SliceInfo::new_unchecked` only...
Fixes #1194 with a very slight generalization to make this arm more similar to the other arms.
See https://github.com/rust-lang/rust/pull/99447#issuecomment-1204019943 The fact that `$crate` in the macro_rules LHS is accepted and glued into `kw::DollarCrate` is likely an accidental bug. The single use is an internal macro helper arm,...
Hello, Thank you for this fantastic package. I would like to split an `MxN` array into `k^2` chunks of size `(M/k)x(N/k)` and then process these in parallel. I'm aware of...
#427 * add `shrink_to_fit` to `Array` * add `to_default_strid` to `Array` * add `offset_from_data` to `Array` * add `shrink_to_fit` to `OwnedRepr`
The documentation recommends collecting into a `Vec` when performing parallel axis operations, . This is far from ideal when further `ndarray` operations are required. It would be helpful if axis...
I want to use zip (or azip!) with 7 producers but its only implemented for max 6 producers. Is there a convenient way to also implement it for more producers?...
## Motivation Following from discussion starting here: https://github.com/rust-ndarray/ndarray/pull/1042#issuecomment-957134294 > With contemporary systems, moving the data from memory into caches and registers often dominates the runtime of numerical algorithms depending on...
The following snippet fails when executing with miri on the latest nightly ```rust use ndarray::*; fn main() { let a1 = arr2(&[[1.0, 2.0], [3.0, 4.0]]); let a2 = arr2(&[[2.0, 3.0],...
```rust let d = aview1(&[1., 2., 3., 4.]); let d = d.into_shape((2, 2)).unwrap(); println!("d shape {:?}", &d.shape()); let a = array![ [110., 120., 130., 140.,], [210., 220., 230., 240.,], [310.,...