ndarray
ndarray copied to clipboard
ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
Hi! I'm trying to experiment with ndarray & BLAS on macOS. Since I'm using macOS, I'd like to use the [Accelerate framework](https://developer.apple.com/documentation/accelerate), a built-in BLAS. This is my code: ```rust...
I'm currently trying to write a function that can take either an owned array or a view. I'm currently relying on this [stackoverflow post](https://stackoverflow.com/a/61759213/6094070) to do something like: ```python use...
Hello folks, I think I found an issue in the way lifetimes are inferred when using `slice` or `slice_axis` on array views. Here is a minimal example with three functions,...
To assign values to a slice of a numpy array it's possible to do e.g.: ```python import numpy as np a = np.zeros((2, 2)) a[:, 0] = 1 ``` It...
The title says it. What I was trying to do when I discovered this was print a zip of a range and an ndarray. Like so: ``` let foo =...
Hi function like[ ```numpy.nan_to_num```](https://numpy.org/doc/stable/reference/generated/numpy.nan_to_num.html) would be very useful so we dont have to replace NaNs by hand
Fixes #1200 Relaxes the type constraint on `StaticOperand` so that it may be used for references. This example now works: ```rust let arr1 = array!([1, 2, 3]); let four: i32...
It would be useful for me to be able to use references to scalars instead of owned instances when performing operations on arrays. e.g., this fails: ```rust let arr1 =...