QuOc

 

Public Member Functions | Private Attributes

aol::ScalarVecToScalarMVecOp< RealType > Class Template Reference

#include <op.h>

Inheritance diagram for aol::ScalarVecToScalarMVecOp< RealType >:
aol::Op< MultiVector< RealType >, Scalar< RealType > >

List of all members.

Public Member Functions

 ScalarVecToScalarMVecOp (const Op< Vector< RealType >, Scalar< RealType > > &VecOp)
void applyAdd (const MultiVector< RealType > &MArg, Scalar< RealType > &Dest) const

Private Attributes

const Op< Vector< RealType >
, Scalar< RealType > > & 
_vecOp

Detailed Description

template<typename RealType>
class aol::ScalarVecToScalarMVecOp< RealType >

Creates an Op from MultiVector to Scalar, by applying a given Op from Vector to Scalar on every component of the argument MultiVector, adding up the resulting Scalars and storing this in the destination Scalar.

Author:
Berkels

Definition at line 562 of file op.h.


Constructor & Destructor Documentation

template<typename RealType >
aol::ScalarVecToScalarMVecOp< RealType >::ScalarVecToScalarMVecOp ( const Op< Vector< RealType >, Scalar< RealType > > &  VecOp  )  [inline]

Definition at line 565 of file op.h.

    : _vecOp ( VecOp ) {}


Member Function Documentation

template<typename RealType >
void aol::ScalarVecToScalarMVecOp< RealType >::applyAdd ( const MultiVector< RealType > &  Arg,
Scalar< RealType > &  Dest 
) const [inline, virtual]

when using applyAddMasked, implement applyAdd as applyAddMasked(Arg, Dest, INCLUDE_WRITE_DEFAULT).

Implements aol::Op< MultiVector< RealType >, Scalar< RealType > >.

Definition at line 568 of file op.h.

References aol::ScalarVecToScalarMVecOp< RealType >::_vecOp, aol::Op< _DomainType, _RangeType >::applyAdd(), and aol::MultiVector< _DataType >::numComponents().

                                                                                    {
    for ( int i = 0; i < MArg.numComponents(); ++i )
      _vecOp.applyAdd ( MArg[i], Dest );
  }


Member Data Documentation

template<typename RealType >
const Op<Vector<RealType>, Scalar<RealType> >& aol::ScalarVecToScalarMVecOp< RealType >::_vecOp [private]

Definition at line 563 of file op.h.

Referenced by aol::ScalarVecToScalarMVecOp< RealType >::applyAdd().


The documentation for this class was generated from the following file:

Generated on Fri Sep 9 2011 21:09:12 for QuocMesh by doxygen 1.7.1