1
- // Copyright 2016 bluss and ndarray developers.
1
+ // Copyright 2016-2019 bluss and ndarray developers.
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
4
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
12
12
//!
13
13
//! ## Note
14
14
//!
15
- //! `ndarray-rand` depends on [`rand` 0.7.0](https://docs.rs/ rand/0.7.0/rand/) .
15
+ //! `ndarray-rand` depends on [`rand` 0.7][ rand] .
16
16
//!
17
- //! [`rand`](https://docs.rs/ rand/0.7.0/rand/) and [`rand-distr`](https://docs.rs/ rand_distr/0.2.1/rand_distr/)
17
+ //! [`rand`][ rand] and [`rand_distr`][ rand_distr]
18
18
//! are re-exported as sub-modules, [`ndarray_rand::rand`](rand/index.html)
19
19
//! and [`ndarray_rand::rand_distr`](rand_distr/index.html) respectively.
20
- //! Please rely on these submodules for guaranteed version compatibility.
20
+ //! You can use these submodules for guaranteed version compatibility or
21
+ //! convenience.
22
+ //!
23
+ //! [rand]: https://docs.rs/rand/0.7
24
+ //! [rand_distr]: https://docs.rs/rand_distr/0.2
21
25
//!
22
26
//! If you want to use a random number generator or distribution from another crate
23
27
//! with `ndarray-rand`, you need to make sure that the other crate also depends on the
@@ -32,12 +36,12 @@ use crate::rand::{thread_rng, Rng, SeedableRng};
32
36
use ndarray:: ShapeBuilder ;
33
37
use ndarray:: { ArrayBase , DataOwned , Dimension } ;
34
38
35
- /// [`rand`](https://docs.rs/rand/0.7.0/rand/ ), re-exported for convenience and version-compatibility.
39
+ /// [`rand`](https://docs.rs/rand/0.7), re-exported for convenience and version-compatibility.
36
40
pub mod rand {
37
41
pub use rand:: * ;
38
42
}
39
43
40
- /// [`rand-distr`](https://docs.rs/rand_distr/0.2.1/rand_distr/ ), re-exported for convenience and version-compatibility.
44
+ /// [`rand-distr`](https://docs.rs/rand_distr/0.2), re-exported for convenience and version-compatibility.
41
45
pub mod rand_distr {
42
46
pub use rand_distr:: * ;
43
47
}
0 commit comments