ndarray
ndarray copied to clipboard
ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
Please post your thoughts, or let me know if something is unclear/confusing! # Summary This RFC proposes the addition of a new storage type `RefRepr` and associated type aliases `ArrayRef`,...
Hi, today I wanted to impl Dimension in a macro so i could make custom dimensions; anyway, long story short, I couldn't make a custom newtype of (usize) axis by...
The type `IntoIter` implemented in https://github.com/rust-ndarray/ndarray/pull/986 is not exposed publicly, which makes it difficult or impossible to implement `IntoIterator` trait for custom types wrapping `ndarray`: ```rust use ndarray::iterators::IntoIter; // Module...
Calling `.windows()` on an `ndarray::ArrayViewMut` should return _mutable_ windows. That's very useful when, for example, you iterate over a partition of an interval and the quantities you compute affect values...
Behind a feature flag.
into_shape has some slightly questionable default behaviour w.r.t how it handles memory layout. The newer to_shape() fixes those problems! You should use to_shape() if you can. Into shape doesn't do...
The following program builds and runs with `cargo run`. This is on current Debian stable with current Rust from rustup. The project was started from a fresh `cargo new`. `src/main.rs`:...
I find myself very frequently having a coordinate and an ndarray Array2/Array3. I want to check whether the coordinate is within the bounds of the Array2/Array3 (IE, gte than 0,0,0,...
I have made an attempt to try to replicate the core functionality of numpy's [meshgrid](https://numpy.org/doc/stable/reference/generated/numpy.meshgrid.html) function, using ndarray. My attempt, which seems to be yielding identical results to the numpy...
Hi. Thank you guys for this awesome library. In my application, I need to compute a gram matrix (basically, `x.t().dot(x)`). Using `gemm` is wasteful, as the result is symmetric and...