julia
e70de210 - RFC: Restricts parameter type for randn & randexp to Float types for #17608. (#17627)

Commit
9 years ago
RFC: Restricts parameter type for randn & randexp to Float types for #17608. (#17627) * Fixes infinite recursion in randn for non-floats; fixes #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.
Author
Committer
Parents
Loading