Skip to content

Commit 5bfecc4

Browse files
committed
Update ndarray in examples and docs
1 parent cbad0f4 commit 5bfecc4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ crate-type = ["cdylib"]
9999

100100
[dependencies]
101101
numpy = "0.7.0"
102-
ndarray = "0.12"
102+
ndarray = "0.13"
103103

104104
[dependencies.pyo3]
105105
version = "0.8"

examples/linalg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
1010

1111
[dependencies]
1212
numpy = { path = "../.." }
13-
ndarray = "0.12"
13+
ndarray = ">= 0.12"
1414
ndarray-linalg = { version = "0.10", features = ["openblas"] }
1515

1616
[dependencies.pyo3]

examples/simple-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
1010

1111
[dependencies]
1212
numpy = { path = "../.." }
13-
ndarray = "0.12"
13+
ndarray = ">= 0.12"
1414

1515
[dependencies.pyo3]
1616
version = "0.8"

src/array.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use crate::types::{NpyDataType, TypeNum};
5050
/// All data types you can use implements [TypeNum](../types/trait.TypeNum.html).
5151
///
5252
/// Dimensions are represented by ndarray's
53-
/// [Dimension](https://docs.rs/ndarray/0.12/ndarray/trait.Dimension.html) trait.
53+
/// [Dimension](https://docs.rs/ndarray/latest/ndarray/trait.Dimension.html) trait.
5454
///
5555
/// Typically, you can use `Ix1, Ix2, ..` for fixed size arrays, and use `IxDyn` for dynamic
5656
/// dimensioned arrays. They're re-exported from `ndarray` crate.
@@ -59,7 +59,7 @@ use crate::types::{NpyDataType, TypeNum};
5959
/// or [`PyArrayDyn`](./type.PyArrayDyn.html).
6060
///
6161
/// To specify concrete dimension like `3×4×5`, you can use types which implements ndarray's
62-
/// [`IntoDimension`](https://docs.rs/ndarray/0.12/ndarray/dimension/conversion/trait.IntoDimension.html)
62+
/// [`IntoDimension`](https://docs.rs/ndarray/latest/ndarray/dimension/conversion/trait.IntoDimension.html)
6363
/// trait. Typically, you can use array(e.g. `[3, 4, 5]`) or tuple(e.g. `(3, 4, 5)`) as a dimension.
6464
///
6565
/// # Example
@@ -497,7 +497,7 @@ impl<T: TypeNum, D: Dimension> PyArray<T, D> {
497497
}
498498

499499
/// Construct PyArray from
500-
/// [`ndarray::Array`](https://docs.rs/ndarray/0.12/ndarray/type.Array.html).
500+
/// [`ndarray::Array`](https://docs.rs/ndarray/latest/ndarray/type.Array.html).
501501
///
502502
/// This method uses internal [`Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html)
503503
/// of `ndarray::Array` as numpy array.
@@ -516,7 +516,7 @@ impl<T: TypeNum, D: Dimension> PyArray<T, D> {
516516
}
517517

518518
/// Get the immutable view of the internal data of `PyArray`, as
519-
/// [`ndarray::ArrayView`](https://docs.rs/ndarray/0.12/ndarray/type.ArrayView.html).
519+
/// [`ndarray::ArrayView`](https://docs.rs/ndarray/latest/ndarray/type.ArrayView.html).
520520
///
521521
/// # Example
522522
/// ```
@@ -659,7 +659,7 @@ impl<T: TypeNum, D: Dimension> PyArray<T, D> {
659659

660660
impl<T: TypeNum + Clone, D: Dimension> PyArray<T, D> {
661661
/// Get a copy of `PyArray` as
662-
/// [`ndarray::Array`](https://docs.rs/ndarray/0.12/ndarray/type.Array.html).
662+
/// [`ndarray::Array`](https://docs.rs/ndarray/latest/ndarray/type.Array.html).
663663
///
664664
/// # Example
665665
/// ```

src/convert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<D: Dimension> ToNpyDims for D {
150150
/// Types that can be used to index an array.
151151
///
152152
/// See
153-
/// [IntoDimension](https://docs.rs/ndarray/0.12/ndarray/dimension/conversion/trait.IntoDimension.html)
153+
/// [IntoDimension](https://docs.rs/ndarray/latest/ndarray/dimension/conversion/trait.IntoDimension.html)
154154
/// for what types you can use as `NpyIndex`.
155155
///
156156
/// But basically, you can use

0 commit comments

Comments
 (0)