Skip to content

Commit abb0f9e

Browse files
committed
ndarray-rand 0.14
1 parent a77825a commit abb0f9e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

ndarray-rand/RELEASES.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
Recent Changes
22
--------------
33

4+
- 0.14.0
5+
6+
- Require ndarray 0.15
7+
- Require rand 0.8 (unchanged from previous version)
8+
- The F32 wrapper is now deprecated, it's redundant
9+
410
- 0.13.0
511

6-
- Require ndarray 0.14 (unchanged from previous version)
7-
- Require rand 0.8
8-
- Require rand_distr 0.4
9-
- Fix methods `sample_axis` and `sample_axis_using` so that they can be used on array views too.
12+
- Require ndarray 0.14 (unchanged from previous version)
13+
- Require rand 0.8
14+
- Require rand_distr 0.4
15+
- Fix methods `sample_axis` and `sample_axis_using` so that they can be used on array views too.
1016

1117
- 0.12.0
1218

ndarray-rand/benches/bench.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ extern crate test;
44

55
use ndarray::Array;
66
use ndarray_rand::RandomExt;
7-
use ndarray_rand::F32;
87
use rand_distr::Normal;
98
use rand_distr::Uniform;
109

@@ -19,11 +18,11 @@ fn uniform_f32(b: &mut Bencher) {
1918
#[bench]
2019
fn norm_f32(b: &mut Bencher) {
2120
let m = 100;
22-
b.iter(|| Array::random((m, m), F32(Normal::new(0., 1.).unwrap())));
21+
b.iter(|| Array::random((m, m), Normal::new(0f32, 1.).unwrap()));
2322
}
2423

2524
#[bench]
2625
fn norm_f64(b: &mut Bencher) {
2726
let m = 100;
28-
b.iter(|| Array::random((m, m), Normal::new(0., 1.).unwrap()));
27+
b.iter(|| Array::random((m, m), Normal::new(0f64, 1.).unwrap()));
2928
}

ndarray-rand/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,10 @@ fn get_rng() -> SmallRng {
333333
/// // [ -0.6810, 0.1678, -0.9487, 0.3150, 1.2981]]
334334
/// # }
335335
#[derive(Copy, Clone, Debug)]
336+
#[deprecated(since="0.14.0", note="Redundant with rand 0.8")]
336337
pub struct F32<S>(pub S);
337338

339+
#[allow(deprecated)]
338340
impl<S> Distribution<f32> for F32<S>
339341
where
340342
S: Distribution<f64>,

0 commit comments

Comments
 (0)