ndarray
ndarray copied to clipboard
ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
I did a quick scan of the issues and didn't see this. For an `array: Array` (for example), i think it's perfectly reasonable to expect ```rust let output: Array =...
[The documentation](https://docs.rs/ndarray/latest/ndarray/macro.array.html) says > Create an [Array](https://docs.rs/ndarray/latest/ndarray/type.Array.html) with one, two or three dimensions. This is fine. However, I wonder if the following code should be able to run silently (not...
It seems that [`ndarray-rand`](https://github.com/rust-ndarray/ndarray/tree/master/ndarray-rand) could be an independent crate in its own separate repo, like [`ndarray-linalg`](https://github.com/rust-ndarray/ndarray-linalg) or [`ndarray-stats`](https://github.com/rust-ndarray/ndarray-stats). In that way, people could focus on the specific crates and could...
I was looking for an equivalent function of numpy's `column_stack` (see https://docs.scipy.org/doc/numpy/reference/generated/numpy.column_stack.html) in `ndarray` docs. This is how I managed to solve the issue: ```rust use ndarray::{Array, Axis, stack, arr2};...
In a project I wanted to iterate over the rows and columns of a 2d array in reverse but while `rows` and `columns` exist, the resulting `LanesIter` does not implement...
Currently, `ArrayView` has a helpful lifetime-preserving methods like `to_slice`, but no way to preserve lifetimes of iterators like `axis_iter`, `outer_iter` and such. This makes it difficult to return iterables from...
Motivating example: I'm computing 3D positions on a unit sphere from a uniform grid of `(longitude, latitude)` pairs. This is what it looks like now: ``` const SHAPE: (usize, usize)...
Everything is in the title, I think. Marking the ArrayBase with a static Shape could indeed be effective to add more type checking and as such permitting compile time and...
Would be very interesting to use type-level integers (http://paholg.com/typenum/typenum/index.html) for things like matrix dimensions. For compile-time checking of matrix dimensions, indexing, etc.
I've been thinking about the dimension types for a while. Two things I don't like about the current implementation are that: 1. Strides are represented as `usize` and have to...