Rand 0.5 was released today! And since we're new to rand support here, it might make sense to update before num-complex 0.2 is ever released. Rand 0.5 only supports rust 1.22+, but again since this is new functionality, and optional, that limitation may be fine. The worst case is that a user might have to use Complex::new(rng.gen(), rng.gen()) manually, as they probably do without our support.
We can potentially implement a lot of the distributions for Complex<T> based on T's own support. For many of them, we can just use T as a univariate distribution, and map it as a multivariate distribution on the real and imaginary axes. We can just stick to Standard distribution as the first step though.
Rand 0.5 was released today! And since we're new to
rand
support here, it might make sense to update before num-complex 0.2 is ever released. Rand 0.5 only supports rust 1.22+, but again since this is new functionality, and optional, that limitation may be fine. The worst case is that a user might have to useComplex::new(rng.gen(), rng.gen())
manually, as they probably do without our support.We can potentially implement a lot of the distributions for
Complex<T>
based onT
's own support. For many of them, we can just useT
as a univariate distribution, and map it as a multivariate distribution on the real and imaginary axes. We can just stick toStandard
distribution as the first step though.