RTOpPack::TOpRandomize< Scalar > Class Template Reference

Generate a random vector in the range [l,u]: 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 >:

[legend]
List of all members.

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())
 

Detailed Description

template<class Scalar>
class RTOpPack::TOpRandomize< Scalar >

Generate a random vector in the range [l,u]: 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:

  Teuchos::ScalarTraits<Scalar>::seedrandom(s)
where s is some unsigned integer

Definition at line 45 of file RTOpPack_TOpRandomize.hpp.


Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::TOpRandomize< Scalar >::TOpRandomize const Scalar &  l = -Teuchos::ScalarTraits<Scalar>::one(),
const Scalar &  u = +Teuchos::ScalarTraits<Scalar>::one()
[inline]
 

Definition at line 50 of file RTOpPack_TOpRandomize.hpp.


Member Function Documentation

template<class Scalar>
void RTOpPack::TOpRandomize< Scalar >::set_bounds const Scalar &  l,
const Scalar &  u
[inline]
 

Definition at line 48 of file RTOpPack_TOpRandomize.hpp.

template<class Scalar>
void RTOpPack::TOpRandomize< Scalar >::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 [inline, virtual]
 

Implements RTOpPack::RTOpT< Scalar >.

Definition at line 59 of file RTOpPack_TOpRandomize.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:39:45 2008 for RTOp : Vector Reduction/Transformation Operators by doxygen 1.3.9.1