[Numpy-discussion] Complex Normal Generator in NEP-19 extension

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Sun Mar 31 12:25:12 EDT 2019


Certainly have done `np.random.normal(2*n).view('c16')` very often. Makes
sense to just allow it to be generated directly. -- Marten

On Sat, Mar 30, 2019 at 6:24 PM Hameer Abbasi <einstein.edison at gmail.com>
wrote:

> On Friday, Mar 29, 2019 at 6:03 PM, Hameer Abbasi <
> einstein.edison at gmail.com> wrote:
>
> On Friday, Mar 29, 2019 at 6:01 PM, Kevin Sheppard <
> kevin.k.sheppard at gmail.com> wrote:
> One part of moving randomgen closer to fulfilling NEP-19 is rationalizing
> the API, especially new features not in RandomState. Matti Picus has made a
> lot of progress in getting it integrated, especially the part of replacing
> RandomState shimed version of the new generator.
>
> There is only one new method in the generator, a scalar generator for
> complex normals. It is scalar in the sense that it is the complex version
> of np.random.normal, and so supports broadcasting.
>
> This was written based on some GH comments.  This would be a new API and
> so it needs to come here first to see if there is any support.
>
> If there is support, then it will appear in the new RandomGenerator, but
> not the RandomState replacement. If not, then we can just delete it.
>
> Kevin
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
>
> +1
>
> Best Regards,
> Hameer Abbasi
>
>
> To expand on this, the Complex normal distribution is pretty common in
> communications, control, signals and systems, and so on. :) It’d be a great
> add.
>
> Best Regards,
> Hameer Abbasi
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190331/fdec1040/attachment.html>


More information about the NumPy-Discussion mailing list