rvlib
rvlib copied to clipboard
varargs not supported by numba
numba
currently does not support variable or default arguments for functions with the @jit
decorator.
As a result we are not able to use the rand
method without parentheses.
Specifically, in the Distributions.jl
package the D.rand
command generates a random variable from distribution D and the D.rand(n)
command generates an array of independent random variables of size n from distribution D.
In the Distributions.py
package in order to generate one random draw from distribution D we need to call D.rand(1)
instead of D.rand
. Generating an array works in the same way, D.rand(n)
.