forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC: Restricts parameter type for randn & randexp to Float types for J…
…uliaLang#17608. (JuliaLang#17627) * Fixes infinite recursion in randn for non-floats; fixes JuliaLang#17608. The functions already only supported Float types (Float16,Float32,Float64), but could be called with non-float types. Calling with Non-Float types, e.g. `Int`, could cause an infinite loop. Also adds tests verifying that randn throws a MethodError for types besides Float types. * s/dim0/dim1/ * removed other dimensions, fixed randn(T), added comment.
- Loading branch information
Showing
2 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters