Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

fix whatever is wrong with normal_distribution #34

Closed
jaredhoberock opened this issue May 7, 2012 · 1 comment
Closed

fix whatever is wrong with normal_distribution #34

jaredhoberock opened this issue May 7, 2012 · 1 comment

Comments

@jaredhoberock
Copy link
Contributor

Seems to be untested and broken.

@jaredhoberock
Copy link
Contributor Author

The problem seems to be the use of the non-standard math function erfcinv, which makes it non-portable.

An alternative is the "polar method" which generates two points at once, and caches the 2nd result to use on the next invocation. We could do this when the compiler is not nvcc, but it would involve refactoring the code to accomodate the cache.

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

No branches or pull requests

1 participant