Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Aug 15, 2024
1 parent 2cb96e6 commit 8efe55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/parallel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.21.0", features = ["extension-module", "multiple-pymethods"] }
numpy = { path = "../.." }
ndarray = { version = "0.15", features = ["rayon", "blas"] }
ndarray = { version = "0.16", features = ["rayon", "blas"] }
blas-src = { version = "0.8", features = ["openblas"] }
openblas-src = { version = "0.10", features = ["cblas", "system"] }

Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fn rust_ext<'py>(m: &Bound<'py, PyModule>) -> PyResult<()> {
#[allow(deprecated)]
Zip::from(x.as_array_mut())
.and(y.as_array())
.apply(|x, y| *x = (i64::from(*x) + 60 * i64::from(*y)).into());
.for_each(|x, y| *x = (i64::from(*x) + 60 * i64::from(*y)).into());
}

// This crate follows a strongly-typed approach to wrapping NumPy arrays
Expand Down

0 comments on commit 8efe55d

Please sign in to comment.