Skip to content

Commit

Permalink
Merge pull request #851 from rust-ndarray/further-dep-bumps
Browse files Browse the repository at this point in the history
Bump to approx 0.4, num-complex 0.3
  • Loading branch information
bluss committed Nov 28, 2020
2 parents 76c8a95 + 84eeb11 commit dd06116
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Expand Up @@ -7,7 +7,7 @@ authors = [
"bluss",
"Jim Turner"
]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "README-crates.io.md"

repository = "https://github.com/rust-ndarray/ndarray"
Expand All @@ -30,11 +30,11 @@ 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 }

approx = { version = "0.3.2", optional = true }
approx = { version = "0.4", optional = true }

# Use via the `blas` crate feature!
cblas-sys = { version = "0.1.4", optional = true, default-features = false }
Expand All @@ -47,7 +47,7 @@ rawpointer = { version = "0.2" }
[dev-dependencies]
defmac = "0.2"
quickcheck = { version = "0.9", default-features = false }
approx = "0.3.2"
approx = "0.4"
itertools = { version = "0.9.0", default-features = false, features = ["use_std"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion blas-tests/Cargo.toml
Expand Up @@ -8,7 +8,7 @@ publish = false
test = false

[dev-dependencies]
approx = "0.3.2"
approx = "0.4"
ndarray = { path = "../", features = ["approx", "blas"] }
blas-src = { version = "0.6.1", default-features = false, features = ["openblas"] }
openblas-src = { version = "0.9.0", default-features = false, features = ["cblas", "system"] }
Expand Down
2 changes: 1 addition & 1 deletion numeric-tests/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ authors = ["bluss"]
publish = false

[dependencies]
approx = "0.3.2"
approx = "0.4"
ndarray = { path = "..", features = ["approx"] }
ndarray-rand = { path = "../ndarray-rand/" }
rand_distr = "0.2.1"
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 dd06116

Please sign in to comment.