From c370564dba75f13b4af54e13b595609e5c9cdde0 Mon Sep 17 00:00:00 2001 From: Antony Lesage Date: Tue, 6 Nov 2018 19:24:20 +0100 Subject: [PATCH] Fix MatrixMN::from_distribution (#463) --- src/base/construction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/construction.rs b/src/base/construction.rs index c198cf65..52e99cd7 100644 --- a/src/base/construction.rs +++ b/src/base/construction.rs @@ -251,7 +251,7 @@ where DefaultAllocator: Allocator pub fn from_distribution_generic + ?Sized, G: Rng + ?Sized>( nrows: R, ncols: C, - distribution: &mut Distr, + distribution: &Distr, rng: &mut G, ) -> Self { @@ -584,7 +584,7 @@ macro_rules! impl_constructors( #[inline] pub fn from_distribution + ?Sized, G: Rng + ?Sized>( $($args: usize,)* - distribution: &mut Distr, + distribution: &Distr, rng: &mut G, ) -> Self { Self::from_distribution_generic($($gargs, )* distribution, rng) @@ -721,7 +721,7 @@ where Unit::new_normalize(VectorN::from_distribution_generic( D::name(), U1, - &mut StandardNormal, + &StandardNormal, rng, )) }