z0[i] = 0.5*((u-l)*Teuchos::ScalarTraits<Scalar>::random()+(u+l)), i=1...n.
More...
#include <RTOpPack_TOpRandomize.hpp>
Inheritance diagram for RTOpPack::TOpRandomize< Scalar >:
Overridden from RTOpT | |
| void | apply_op (const int num_vecs, const SubVectorT< Scalar > sub_vecs[], const int num_targ_vecs, const MutableSubVectorT< Scalar > targ_sub_vecs[], ReductTarget *reduct_obj) const |
| | |
Public Member Functions | |
| void | set_bounds (const Scalar &l, const Scalar &u) |
| | |
| TOpRandomize (const Scalar &l=-Teuchos::ScalarTraits< Scalar >::one(), const Scalar &u=+Teuchos::ScalarTraits< Scalar >::one()) | |
| | |
z0[i] = 0.5*((u-l)*Teuchos::ScalarTraits<Scalar>::random()+(u+l)), i=1...n.
The seed for the random number generator can be set by:
wheres is some unsigned integer
Definition at line 45 of file RTOpPack_TOpRandomize.hpp.
|
||||||||||||||||
|
Definition at line 50 of file RTOpPack_TOpRandomize.hpp. |
|
||||||||||||||||
|
Definition at line 48 of file RTOpPack_TOpRandomize.hpp. |
|
||||||||||||||||||||||||||||
|
Implements RTOpPack::RTOpT< Scalar >. Definition at line 59 of file RTOpPack_TOpRandomize.hpp. |
1.3.9.1