Skip to content

Commit 96348e5

Browse files
committed
Fix reflection order for Q-matrix
1 parent 83d7af4 commit 96348e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/krylov/householder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl<A: Scalar + Lapack> Orthogonalizer for Householder<A> {
9393
let mut a = Array::zeros((self.dim(), self.len()));
9494
for (i, mut col) in a.axis_iter_mut(Axis(1)).enumerate() {
9595
col[i] = A::one();
96-
for l in 0..self.len() {
96+
for l in (0..self.len()).rev() {
9797
self.reflect(l, &mut col);
9898
}
9999
}

0 commit comments

Comments
 (0)