From 284859012999bdad863f4e0f660223acaa28d422 Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Wed, 30 May 2018 22:29:32 +0900 Subject: [PATCH 1/5] rand 0.5 num-complex 0.2 openblas-src 0.6 --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d606aa8..91e483fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,10 +23,10 @@ derive-new = "0.5" lapacke = "0.1.4" num-traits = "0.1" procedurals = "0.2" -rand = "0.4" +rand = "0.5" [dependencies.num-complex] -version = "0.1" +version = "0.2" default-features = false [dependencies.ndarray] @@ -51,7 +51,7 @@ default-features = false optional = true [dependencies.openblas-src] -version = "0.5.3" +version = "0.6.0" features = ["static", "cblas", "lapacke"] default-features = false optional = true From e49670c77358c68ea5d2a96533f559d58e4b76ff Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Wed, 30 May 2018 22:47:43 +0900 Subject: [PATCH 2/5] num-trait 0.2 lapacke 0.2 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 91e483fe..f7a52fc3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,8 +20,8 @@ openblas = ["lapack-src/openblas", "blas-src/openblas", "openblas-src"] [dependencies] derive-new = "0.5" -lapacke = "0.1.4" -num-traits = "0.1" +lapacke = "0.2" +num-traits = "0.2" procedurals = "0.2" rand = "0.5" From afd09ba1923e8db0b3a27c1d6009314f9c14996a Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Thu, 28 Jun 2018 17:36:11 +0900 Subject: [PATCH 3/5] Use ndarray-git --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f7a52fc3..6f55231f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,8 @@ version = "0.2" default-features = false [dependencies.ndarray] -version = "0.11" +version = "0.11.2" +git = "https://github.com/bluss/ndarray" features = ["blas"] default-features = false From 71c3ed9e6321c75ebafe65583cc92581d27a301f Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Thu, 28 Jun 2018 18:07:16 +0900 Subject: [PATCH 4/5] Use {lapack,blas}-src 0.2 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6f55231f..5935b868 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,12 +36,12 @@ features = ["blas"] default-features = false [dependencies.blas-src] -version = "0.1" +version = "0.2" default-features = false optional = true [dependencies.lapack-src] -version = "0.1" +version = "0.2" default-features = false optional = true From aaea00bc72c040d1efc88f84c80eaee8006f568e Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Thu, 28 Jun 2018 18:11:43 +0900 Subject: [PATCH 5/5] Use sample instead of ind_sample --- src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.rs b/src/types.rs index cb2db8b0..e30ab421 100644 --- a/src/types.rs +++ b/src/types.rs @@ -293,15 +293,15 @@ macro_rules! impl_traits { impl RandNormal for $real { fn randn(rng: &mut R) -> Self { let dist = Normal::new(0., 1.); - dist.ind_sample(rng) as $real + dist.sample(rng) as $real } } impl RandNormal for $complex { fn randn(rng: &mut R) -> Self { let dist = Normal::new(0., 1.); - let re = dist.ind_sample(rng) as $real; - let im = dist.ind_sample(rng) as $real; + let re = dist.sample(rng) as $real; + let im = dist.sample(rng) as $real; Self::new(re, im) } }