https://github.com/JuliaLang/julia
Revision e70de2100f466161d4140a07c62321cb49f624a0 authored by Nathan Daly on 29 July 2016, 14:57:25 UTC, committed by Steven G. Johnson on 29 July 2016, 14:57:25 UTC
* 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.
1 parent d528b63
History
Tip revision: e70de2100f466161d4140a07c62321cb49f624a0 authored by Nathan Daly on 29 July 2016, 14:57:25 UTC
RFC: Restricts parameter type for randn & randexp to Float types for #17608. (#17627)
Tip revision: e70de21
File Mode Size
base
contrib
deps
doc
etc
examples
src
test
ui
.gitignore -rw-r--r-- 207 bytes
.mailmap -rw-r--r-- 9.5 KB
.travis.yml -rw-r--r-- 4.5 KB
CONTRIBUTING.md -rw-r--r-- 18.0 KB
DISTRIBUTING.md -rw-r--r-- 8.3 KB
HISTORY.md -rw-r--r-- 73.8 KB
LICENSE.md -rw-r--r-- 5.1 KB
Make.inc -rw-r--r-- 31.9 KB
Makefile -rw-r--r-- 27.2 KB
NEWS.md -rw-r--r-- 23.4 KB
README.arm.md -rw-r--r-- 4.3 KB
README.md -rw-r--r-- 27.3 KB
README.power.md -rw-r--r-- 1.1 KB
README.windows.md -rw-r--r-- 17.6 KB
VERSION -rw-r--r-- 10 bytes
Windows.inc -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 2.1 KB

README.md

back to top