-
-
Notifications
You must be signed in to change notification settings - Fork 470
Closed
Labels
E-questionParticipation: opinions wantedParticipation: opinions wantedP-lowPriority: LowPriority: Low
Description
The Distribution
trait does not work well for multivariate distributions, because impl Distribution<Vec<f64>> for Multivariate
requires an allocation for every sample (see #485 for an example). Maybe we should add another trait:
pub trait MultivariateDistribution<T> {
fn sample_multi<R: Rng + ?Sized>(&self, rng: &mut R, buffer: &mut [T]);
}
With SIMD in mind, this might even make sense for univariate distribution. So we might want to add sample_multi
to the Distribution
trait.
schneiderfelipe
Metadata
Metadata
Assignees
Labels
E-questionParticipation: opinions wantedParticipation: opinions wantedP-lowPriority: LowPriority: Low