Skip to content

Commit

Permalink
API: Bump num-complex to version 0.3
Browse files Browse the repository at this point in the history
Use num-complex without activating std (because ndarray does not need it
by itself) - this means we can't use norm by default in the test.
  • Loading branch information
bluss committed Nov 28, 2020
1 parent 76c8a95 commit 5cf7572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -30,7 +30,7 @@ test = true
[dependencies]
num-integer = "0.1.39"
num-traits = "0.2"
num-complex = "0.2"
num-complex = { version = "0.3", default-features = false }

rayon = { version = "1.0.3", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion tests/complex.rs
Expand Up @@ -10,7 +10,7 @@ fn c<T: Clone + Num>(re: T, im: T) -> Complex<T> {
#[test]
fn complex_mat_mul() {
let a = arr2(&[[c(3., 4.), c(2., 0.)], [c(0., -2.), c(3., 0.)]]);
let b = (&a * c(3., 0.)).map(|c| 5. * c / c.norm());
let b = (&a * c(3., 0.)).map(|c| 5. * c / c.norm_sqr());
println!("{:>8.2}", b);
let e = Array::eye(2);
let r = a.dot(&e);
Expand Down

0 comments on commit 5cf7572

Please sign in to comment.