Skip to content

Commit 5cf7572

Browse files
committed
API: Bump num-complex to version 0.3
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.
1 parent 76c8a95 commit 5cf7572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test = true
3030
[dependencies]
3131
num-integer = "0.1.39"
3232
num-traits = "0.2"
33-
num-complex = "0.2"
33+
num-complex = { version = "0.3", default-features = false }
3434

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

tests/complex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn c<T: Clone + Num>(re: T, im: T) -> Complex<T> {
1010
#[test]
1111
fn complex_mat_mul() {
1212
let a = arr2(&[[c(3., 4.), c(2., 0.)], [c(0., -2.), c(3., 0.)]]);
13-
let b = (&a * c(3., 0.)).map(|c| 5. * c / c.norm());
13+
let b = (&a * c(3., 0.)).map(|c| 5. * c / c.norm_sqr());
1414
println!("{:>8.2}", b);
1515
let e = Array::eye(2);
1616
let r = a.dot(&e);

0 commit comments

Comments
 (0)