From ad293af61e36b34aed3910ab113b420aa7aaa123 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 17 Apr 2016 23:12:31 +0200 Subject: [PATCH 1/4] Edit docs for fold_axis --- src/impl_methods.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/impl_methods.rs b/src/impl_methods.rs index 3ba1fbba9..d3b4758a5 100644 --- a/src/impl_methods.rs +++ b/src/impl_methods.rs @@ -1260,7 +1260,12 @@ impl ArrayBase where S: Data, D: Dimension } } - /// Fold along an axis + /// Fold along an axis. + /// + /// Combine the elements of each subview with the previous using the `fold` + /// function and initial value `init`. + /// + /// Return the result as an `OwnedArray`. pub fn fold_axis(&self, axis: Axis, init: B, mut fold: F) -> OwnedArray where D: RemoveAxis, From aba4210d6c25c773dc62135345f14b290bb2ce66 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 17 Apr 2016 23:12:31 +0200 Subject: [PATCH 2/4] 0.5.0 --- Cargo.toml | 2 +- README.rst | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2a2fc1810..714e2ae69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ndarray" -version = "0.5.0-alpha.2" +version = "0.5.0" authors = ["bluss"] license = "MIT/Apache-2.0" diff --git a/README.rst b/README.rst index 00b81a836..1de4b52e0 100644 --- a/README.rst +++ b/README.rst @@ -87,6 +87,20 @@ How to use with cargo:: Recent Changes (ndarray) ------------------------ +- 0.5.0 + + - Require Rust 1.8 and exable +=, -= and other assign operators. + All ``iadd, iadd_scalar`` and similar methods are now deprecated. + - ndarray now has a prelude: ``use ndarray::prelude::*;``. + - Constructors from_elem, zeros, from_shape_vec now all support passing a custom + memory layout. A lot of specific constructors were deprecated. + - Add method ``.select(Axis, &[Ix]) -> OwnedArray``, to create an array + from a non-contiguous pick of subviews along an axis. + - Rename ``.mat_mul()`` to just ``.dot()`` and add a function ``general_mat_mul`` + for matrix multiplication with scaling into an existing array. + - **Change .fold() to use arbitrary order.** + - See below for more details + - 0.5.0-alpha.2 - Fix a namespace bug in the stack![] macro. From ccded5b4ab140162bbeb816ecb0c17ba850256c4 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 17 Apr 2016 23:12:31 +0200 Subject: [PATCH 3/4] ndarray-rand 0.1.1 --- ndarray-rand/Cargo.toml | 4 ++-- ndarray-rand/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ndarray-rand/Cargo.toml b/ndarray-rand/Cargo.toml index 625442f34..8d1012d48 100644 --- a/ndarray-rand/Cargo.toml +++ b/ndarray-rand/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ndarray-rand" -version = "0.1.0" +version = "0.1.1" authors = ["bluss"] license = "MIT/Apache-2.0" @@ -13,4 +13,4 @@ keywords = ["multidimensional", "matrix", "rand", "ndarray"] [dependencies] rand = "0.3" -ndarray = { version = ">= 0.4.4, <= 0.5.0-alpha.10", path = ".." } +ndarray = { version = ">= 0.4.9, < 0.6", path = ".." } diff --git a/ndarray-rand/src/lib.rs b/ndarray-rand/src/lib.rs index d135994f8..4920956a4 100644 --- a/ndarray-rand/src/lib.rs +++ b/ndarray-rand/src/lib.rs @@ -75,6 +75,7 @@ impl RandomExt for ArrayBase Self::random_using(dim, dist, &mut rand::weak_rng()) } + #[allow(deprecated)] // from_vec_dim fn random_using(dim: D, dist: IdS, rng: &mut R) -> ArrayBase where IdS: IndependentSample, R: Rng From 3faf7c4776822311a5fda8f44e6cbdc9e95509e1 Mon Sep 17 00:00:00 2001 From: bluss Date: Sun, 17 Apr 2016 23:12:31 +0200 Subject: [PATCH 4/4] ndarray-rblas 0.1.1 --- ndarray-rblas/Cargo.toml | 4 ++-- ndarray-rblas/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ndarray-rblas/Cargo.toml b/ndarray-rblas/Cargo.toml index b5b8da033..c4d37e53c 100644 --- a/ndarray-rblas/Cargo.toml +++ b/ndarray-rblas/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ndarray-rblas" -version = "0.1.0" +version = "0.1.1" authors = ["bluss"] license = "MIT/Apache-2.0" @@ -12,7 +12,7 @@ keywords = ["multidimensional", "matrix", "blas"] [dependencies] rblas = "0.0.13" -ndarray = { version = ">= 0.4.2, < 0.5.0-alpha.10", path = ".." } +ndarray = { version = ">= 0.4.9, < 0.6", path = ".." } [dev-dependencies] num = { version = "0.1", default-features = false } diff --git a/ndarray-rblas/src/lib.rs b/ndarray-rblas/src/lib.rs index c6799dcdf..4f0103119 100644 --- a/ndarray-rblas/src/lib.rs +++ b/ndarray-rblas/src/lib.rs @@ -110,6 +110,7 @@ fn is_inner_contiguous(a: &ArrayBase) -> bool /// If the array is not in the standard layout, copy all elements /// into the standard layout so that the array is C-contiguous. +#[allow(deprecated)] // from_vec_dim fn ensure_standard_layout(a: &mut ArrayBase) where S: DataOwned, D: Dimension,