|
Prev | Next |
# include <cppad/speed/uniform_01.hpp>
uniform_01(seed)
uniform_01(n, x)
uniform_01 is defined in the CppAD
namespace by including
the file cppad/speed/uniform_01.hpp
(relative to the CppAD distribution directory).
It is only intended for example and testing purposes,
so it is not automatically included by
cppad.hpp
.
size_t seed
It specifies a seed
for the uniform random number generator.
size_t n
It specifies the number of elements in the random vector x.
Vector &x
.
The input value of the elements of x does not matter.
Upon return, the elements of x are set to values
randomly sampled over the interval [0,1].
double value,
the object x must support the syntax
x[i] = y
where i has type size_t with value less than
or equal
n-1
.
This is the only requirement of the type Vector.