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

Added functions for generating uniform/normal distributed randomness #154

Merged
merged 10 commits into from
Oct 29, 2019

Conversation

regexident
Copy link
Collaborator

@regexident regexident commented Oct 26, 2019

As this is a purely additive change I figured we actually don't need to wait for a v3.x.
We have plenty of stuff on our plate for that already.

Resolves #144

@regexident regexident requested a review from mattt October 26, 2019 22:13
Copy link
Collaborator

@mattt mattt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @regexident! Only question I had was about the naming of randUniform & randNormal. Would it make sense to expand to randomUniform & randomNormal for clarity? Or is the use of rand in keeping with other well-known abbreviations whose use is less conspicuous than expanding to a more descriptive name (e.g. det(_:) -> determinant(of:))?

@regexident
Copy link
Collaborator Author

regexident commented Oct 28, 2019

Yeah, I was keeping it short, to blend in with the rest of Surge.

I'm 50/50 between rand…/random… though, so feel free to make a pick. 😉

@mattt
Copy link
Collaborator

mattt commented Oct 29, 2019

Let's go for random here, and consider det(_:) et al. as part of the broader name consolidation in 3.0.

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.

Efficient randomized initializers for Array/Vector/Matrix
2 participants