Repository navigation
Comparing changes
Open a pull request
base repository: conceptofmind/ndarray
base: master
head repository: rust-ndarray/ndarray
compare: master
- 15 commits
- 30 files changed
- 11 contributors
Commits on Feb 16, 2026
-
perf(iteration): use move instead of clone for iteration (rust-ndarra…
…y#1586) @scho-furiosa pointed out in rust-ndarray#1584 that there was an unnecessary `clone` in `Baseiter::next` that was degrading performance for dynamic-dimensional arrays. This change switches to a move, netting a 74% speedup in iteration for dynamic-dimensional arrays. Tests (detailed in rust-ndarray#1584) showed that there was a trade-off in performance between dynamic- and fixed-dimensional iteration. `ArrayD` performs best when mutating its index; `ArrayN` performs best when using a move. This is an indication that, in the future, `Baseiter::next` should dispatch to the "layout" / `Dimension` underlying type. Co-authored-by: Sungkeun Cho <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 27af864 - Browse repository at this point
Copy the full SHA 27af864View commit details
Commits on Jun 6, 2026
-
chore: update msrv to 1.87 (rust-ndarray#1597)
Unfortunately, as tends to happen, the ground has shifted beneath our feet, and we now need MSRV 1.87 to run with our dependencies. The good news is that this will allow us to go to the 2024 edition. Onwards and upwards!
Configuration menu - View commit details
-
Copy full SHA for fbcf3bf - Browse repository at this point
Copy the full SHA fbcf3bfView commit details -
fix: permute_axes bug (rust-ndarray#1596)
As pointed out in rust-ndarray#1589, permute_axes had a bug. This uses a simple algorithm to fix it; explanations for this algorithm are all over the internet, it's nothing fancy. I did take the opportunity to introduce proptest, which I'd like to make more use of over time. Down the line, it would be good to change the argument to `permute_axes` to be something like `T: Permutation`. Right now, `permute_axes` just has an assertion that the input is a real permutation. I'd call that a classic example of this library opting for asserts when we could be using better typing. But I think that will be easier / better to introduce after the core rework. Closes #1859
Configuration menu - View commit details
-
Copy full SHA for 794f670 - Browse repository at this point
Copy the full SHA 794f670View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf2c32 - Browse repository at this point
Copy the full SHA 8cf2c32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0612fb7 - Browse repository at this point
Copy the full SHA 0612fb7View commit details
Commits on Jun 19, 2026
-
Make ArrayViewMut::into_view public to allow lifetime preservation du…
…ring conversion (rust-ndarray#1600)
Configuration menu - View commit details
-
Copy full SHA for bd3ade9 - Browse repository at this point
Copy the full SHA bd3ade9View commit details
Commits on Oct 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for c95d814 - Browse repository at this point
Copy the full SHA c95d814View commit details -
ci: run latest-deps check daily and add stable clippy (rust-ndarray#1623
) New Rust releases periodically break CI through new lints and deprecations (rust-ndarray#1620 was the latest), and we usually find out from failures on unrelated PRs. Running this check daily, and including stable clippy, should surface those breakages on `master` within a day. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ace739e - Browse repository at this point
Copy the full SHA ace739eView commit details -
fix: prevent stack overflow in F-order triu/tril (rust-ndarray#1616)
The F-order fast paths in triu and tril swap the last two axes and call each other. That is only safe for 2D arrays, where the swap yields a C-contiguous view. Higher-D F-and-not-C views (for example a C-order transpose followed by insert_axis) can remain F-and-not-C after the swap, so the two functions recurse until they overflow the stack. Restrict the shortcut to ndim == 2 so normal 2D .f() arrays keep the optimization, while the issue rust-ndarray#1615 repro takes the non-recursive path.
Configuration menu - View commit details
-
Copy full SHA for b301b7a - Browse repository at this point
Copy the full SHA b301b7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98957ca - Browse repository at this point
Copy the full SHA 98957caView commit details -
fix: inverted is_all_nan / is_any_nan / is_all_infinite / is_any_infi…
…nite (rust-ndarray#1614) The boolean_ops! macro in src/numeric/impl_float_maths.rs had an inverted $all predicate: Zip::from(self).all(|&elt| !elt.$func()) tests "all elements are NOT NaN", the opposite of the documented "true if all elements are NaN". $any was defined as !self.$all(), so the double negation made is_any_* appear correct while is_all_* returned true for an all-finite array. Correct both predicates together (fixing only $all would break the is_any_* methods that ride on the double negation): $all -> Zip::from(self).all(|&elt| elt.$func()) $any -> Zip::from(self).any(|&elt| elt.$func()) Empty-array semantics are preserved (all -> true, any -> false).
Configuration menu - View commit details
-
Copy full SHA for b0f9657 - Browse repository at this point
Copy the full SHA b0f9657View commit details
Commits on Oct 19, 2026
-
fix: allow zero strides on empty arrays (rust-ndarray#1611)
Treat shapes with an empty axis as non-overlapping when validating mutable views. This allows zero strides on empty arrays while keeping the existing overlap checks for non-empty shapes. Fixes rust-ndarray#1609
Configuration menu - View commit details
-
Copy full SHA for 34d4e13 - Browse repository at this point
Copy the full SHA 34d4e13View commit details -
feat: add
Dimension::from_slice(rust-ndarray#1608)Add a public `from_slice` that returns `None` when the slice length does not match the type's dimensionality (`IxDyn` accepts any length). Now `from_dimension` uses `from_slice`. Closes rust-ndarray#1330
Configuration menu - View commit details
-
Copy full SHA for 4ada8b9 - Browse repository at this point
Copy the full SHA 4ada8b9View commit details -
feat: update to rand 0.10 and rand_distr 0.6
No changes needed in ndarray-rand itself. Changes in `crates/numeric-tests/tests/accuracy.rs`: - Import `RngExt` for `random_range`. - Replace the removed `SmallRng::from_os_rng` with `SmallRng::from_rng(&mut rand::rng())`. bump ndarray-rand to 0.17.0 Closes rust-ndarray#1590
Configuration menu - View commit details
-
Copy full SHA for c9fe937 - Browse repository at this point
Copy the full SHA c9fe937View commit details
Commits on Oct 23, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 53df84a - Browse repository at this point
Copy the full SHA 53df84aView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master