We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199e2d0 commit 1092554Copy full SHA for 1092554
src/arnoldi.rs
@@ -1,4 +1,4 @@
1
-use crate::{generate::*, norm::Norm, types::*};
+use crate::{generate::*, inner::*, norm::Norm, types::*};
2
use ndarray::*;
3
4
#[derive(Debug, Clone)]
@@ -34,7 +34,7 @@ impl<A: Scalar + Lapack> MGS<A> {
34
let mut coef = Array1::zeros(self.len() + 1);
35
for i in 0..self.len() {
36
let q = &self.q[i];
37
- let c = a.dot(q);
+ let c = q.inner(&a);
38
azip!(mut a, q (q) in { *a = *a - c * q } );
39
coef[i] = c;
40
}
@@ -108,4 +108,14 @@ mod tests {
108
fn test_c32() {
109
test::<c32>(1e-5);
110
111
+
112
+ #[test]
113
+ fn test_f64() {
114
+ test::<f64>(1e-9);
115
+ }
116
117
118
+ fn test_c64() {
119
+ test::<c64>(1e-9);
120
121
0 commit comments