Skip to content

Commit edff246

Browse files
committed
Bump ndarray to 0.17
1 parent 4830306 commit edff246

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ndarray-linalg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rand = "0.8.3"
3838
thiserror = "2.0.0"
3939

4040
[dependencies.ndarray]
41-
version = "0.16.0"
41+
version = "0.17.1"
4242
features = ["approx", "std"]
4343
default-features = false
4444

ndarray-linalg/src/lobpcg/eig.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ impl<A: Float + Scalar + ScalarOperand + Lapack + PartialOrd + Default> Truncate
6969
lobpcg(
7070
|y| self.problem.dot(&y),
7171
x,
72-
|mut y| y.assign(&preconditioner.dot(&y)),
72+
|mut y| {
73+
let p = preconditioner.dot(&y);
74+
y.assign(&p);
75+
},
7376
self.constraints.clone(),
7477
self.precision,
7578
self.maxiter,

0 commit comments

Comments
 (0)