Collection of Concrete Vector Reduction/Transformation Operator Implementations
Version of the Day
|
Linear combination transformation operator: z0[i] = beta*z0[i].
More...
#include <RTOpPack_TOpLinearCombination_decl.hpp>
Public Member Functions | |
TOpLinearCombination (const ArrayView< const Scalar > &alpha_in=Teuchos::null, const Scalar &beta=Teuchos::ScalarTraits< Scalar >::zero()) | |
void | alpha (const ArrayView< const Scalar > &alpha_in) |
const ArrayView< const Scalar > | alpha () const |
void | beta (const Scalar &beta_in) |
Scalar | beta () const |
int | num_vecs () const |
Overridden from RTOpT | |
void | apply_op_impl (const ArrayView< const ConstSubVectorView< Scalar > > &sub_vecs, const ArrayView< const SubVectorView< Scalar > > &targ_sub_vecs, const Ptr< ReductTarget > &reduct_obj_inout) const |
Linear combination transformation operator: z0[i] = beta*z0[i].
This transformation operator only accepts num_targ_vec==1
but accepts any num_vecs > 0
.
Warning! this class can only be used in SPMD mode and not client/server or master/slave. You know what needs to happen for this to work!
Definition at line 32 of file RTOpPack_TOpLinearCombination_decl.hpp.
RTOpPack::TOpLinearCombination< Scalar >::TOpLinearCombination | ( | const ArrayView< const Scalar > & | alpha_in = Teuchos::null , |
const Scalar & | beta = Teuchos::ScalarTraits<Scalar>::zero() |
||
) |
Definition at line 22 of file RTOpPack_TOpLinearCombination_def.hpp.
void RTOpPack::TOpLinearCombination< Scalar >::alpha | ( | const ArrayView< const Scalar > & | alpha_in | ) |
Definition at line 36 of file RTOpPack_TOpLinearCombination_def.hpp.
const ArrayView< const Scalar > RTOpPack::TOpLinearCombination< Scalar >::alpha | ( | ) | const |
Definition at line 46 of file RTOpPack_TOpLinearCombination_def.hpp.
void RTOpPack::TOpLinearCombination< Scalar >::beta | ( | const Scalar & | beta_in | ) |
Definition at line 51 of file RTOpPack_TOpLinearCombination_def.hpp.
Scalar RTOpPack::TOpLinearCombination< Scalar >::beta | ( | ) | const |
Definition at line 55 of file RTOpPack_TOpLinearCombination_def.hpp.
int RTOpPack::TOpLinearCombination< Scalar >::num_vecs | ( | ) | const |
Definition at line 59 of file RTOpPack_TOpLinearCombination_def.hpp.
|
virtual |
Implements RTOpPack::RTOpT< Scalar >.
Definition at line 66 of file RTOpPack_TOpLinearCombination_def.hpp.