Skip to content

Commit 36a58f0

Browse files
committed
impl Householder::get_q
1 parent c5db4b8 commit 36a58f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/krylov/householder.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ impl<A: Scalar + Lapack> Orthogonalizer for Householder<A> {
7070
}
7171

7272
fn get_q(&self) -> Q<A> {
73-
unimplemented!()
73+
assert!(self.len() > 0);
74+
let mut a = Array::eye(self.len());
75+
for mut col in a.axis_iter_mut(Axis(0)) {
76+
for l in 0..self.len() {
77+
self.reflect(l, &mut col);
78+
}
79+
}
80+
a
7481
}
7582
}

0 commit comments

Comments
 (0)