Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex randn #21859

Closed
ChrisRackauckas opened this issue May 13, 2017 · 2 comments
Closed

Complex randn #21859

ChrisRackauckas opened this issue May 13, 2017 · 2 comments
Labels
domain:complex Complex numbers

Comments

@ChrisRackauckas
Copy link
Member

One thing I've ran into a lot is having to deal with manually handling random number generation for complex numbers. The standard definition for the complex normal distribution would have

randn{T<:Number}(::Type{Complex{T}}) = (randn(T)+im*randn(T))/sqrt(2)

Would this be something that would be accepted?

@ararslan ararslan added the domain:complex Complex numbers label May 13, 2017
@tkelman
Copy link
Contributor

tkelman commented May 13, 2017

#17725 and discussion in #9836

@ChrisRackauckas
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:complex Complex numbers
Projects
None yet
Development

No branches or pull requests

3 participants