Skip to content

Commit 7e2f760

Browse files
fix(lobpcg): error message had incorrect parameters (#17)
This caused the error message to be confusing, e.g. on a [3, 5] matrix: `Expected matrix rows(5) >= cols(3)`.
1 parent e1dfd46 commit 7e2f760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lobpcg/algorithm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ pub fn lobpcg<A: NdFloat + Sum, F: Fn(ArrayView2<A>) -> Array2<A>, G: Fn(ArrayVi
131131
if size_x > n {
132132
return Err((
133133
LinalgError::NotThin {
134-
rows: size_x,
135-
cols: n,
134+
rows: n,
135+
cols: size_x,
136136
},
137137
None,
138138
));

0 commit comments

Comments
 (0)