Skip to content

Commit 3aece3d

Browse files
authored
Merge pull request #407 from Dirreke/bump-ndarray
Bump ndarray to 0.17
2 parents f192e6f + edff246 commit 3aece3d

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
@@ -47,7 +47,7 @@ rand = "0.8.3"
4747
thiserror = "2.0.0"
4848

4949
[dependencies.ndarray]
50-
version = "0.16.0"
50+
version = "0.17.1"
5151
features = ["approx", "std"]
5252
default-features = false
5353

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)