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

2019-03-31 Thread Marten van Kerkwijk
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 
wrote:

> On Friday, Mar 29, 2019 at 6:03 PM, Hameer Abbasi <
> einstein.edi...@gmail.com> wrote:
>
> On Friday, Mar 29, 2019 at 6:01 PM, Kevin Sheppard <
> kevin.k.shepp...@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@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@python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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

2019-03-30 Thread Hameer Abbasi
> On Friday, Mar 29, 2019 at 6:03 PM, Hameer Abbasi  (mailto:einstein.edi...@gmail.com)> wrote:
> > On Friday, Mar 29, 2019 at 6:01 PM, Kevin Sheppard 
> > mailto:kevin.k.shepp...@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@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



signature.asc
Description: PGP signature
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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

2019-03-30 Thread Peter Creasey
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.
>
>
+1 for complex normal generation.
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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

2019-03-29 Thread Hameer Abbasi
> On Friday, Mar 29, 2019 at 6:01 PM, Kevin Sheppard 
> mailto:kevin.k.shepp...@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@python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion

+1

Best Regards,
Hameer Abbasi



signature.asc
Description: PGP signature
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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

2019-03-29 Thread Kevin Sheppard
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@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion