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

fixed dispatch wiener_rand #157

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Conversation

Jonas-a-Zimmermann
Copy link
Contributor

Solves the issue #156

Fixes Dispatch issue of function wiener_randn(rng::AbstractRNG, proto::Array{T}) where {T} where this would always be invoked, even for complexvalued arrays.

Furthermore Random.randn(Complex) includes the normation factor 1/sqrt(2), such that no specialisation is nececcary.

@ChrisRackauckas
Copy link
Member

Was that ever fixed in Base? I was the one doing the PR and forgot about it 😅

@ChrisRackauckas
Copy link
Member

JuliaLang/julia#21859
JuliaLang/julia#21858
JuliaLang/julia#21973

Okay yeah the randn part was added.

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

Successfully merging this pull request may close these issues.

2 participants