Revision 3788b512df39169eafd703522a6a12caec40b7e4 authored by Rafael Fourquet on 04 December 2017, 17:21:50 UTC, committed by Rafael Fourquet on 29 December 2017, 12:11:50 UTC
Before, a call like `rand(rng, Sampler(rng, 1:10), 3)` generated an `Array{Any,1}`, so a way to get the `eltype` of a Sampler is necessary. Instead of changing Sampler -> Sampler{E}, implementing appropriate eltype methods would have been possible, to keep the helper Sampler subtypes more flexible, but it seemed to be simpler this way.
1 parent da29da1
File | Mode | Size |
---|---|---|
.circleci | ||
.github | ||
base | ||
contrib | ||
deps | ||
doc | ||
etc | ||
examples | ||
src | ||
stdlib | ||
test | ||
ui | ||
.gitignore | -rw-r--r-- | 213 bytes |
.mailmap | -rw-r--r-- | 9.5 KB |
.travis.yml | -rw-r--r-- | 6.5 KB |
CONTRIBUTING.md | -rw-r--r-- | 20.4 KB |
DISTRIBUTING.md | -rw-r--r-- | 23.6 KB |
HISTORY.md | -rw-r--r-- | 145.3 KB |
LICENSE.md | -rw-r--r-- | 5.5 KB |
Make.inc | -rw-r--r-- | 35.2 KB |
Makefile | -rw-r--r-- | 26.4 KB |
NEWS.md | -rw-r--r-- | 58.9 KB |
README.arm.md | -rw-r--r-- | 5.7 KB |
README.md | -rw-r--r-- | 28.1 KB |
README.windows.md | -rw-r--r-- | 13.0 KB |
VERSION | -rw-r--r-- | 10 bytes |
Windows.inc | -rw-r--r-- | 1.5 KB |
appveyor.yml | -rw-r--r-- | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...