Chroma::DiffMdagLinOpArray< T, P, Q > Class Template Reference
[Fermion linear operators]

M^dag linear operator over arrays. More...

#include <ldag.h>

Inheritance diagram for Chroma::DiffMdagLinOpArray< T, P, Q >:

Chroma::DiffLinearOperatorArray< T, P, Q > Chroma::LinearOperatorArray< T > List of all members.

Public Member Functions

 DiffMdagLinOpArray (DiffLinearOperatorArray< T, P, Q > *p)
 Initialize pointer with existing pointer.
 DiffMdagLinOpArray (Handle< DiffLinearOperatorArray< T, P, Q > > p)
 Copy pointer (one more owner).
 ~DiffMdagLinOpArray ()
 Destructor.
const FermBC< T, P, Q > & getFermBC () const
 Return the fermion BC object for this linear operator.
int size () const
 Length of array index.
const Subset & subset () const
 Subset comes from underlying operator.
void operator() (multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign) const
 Apply the operator onto a source vector.
virtual void deriv (P &ds_u, const multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign) const
 Apply the derivative of the operator.
virtual void deriv (P &ds_u, const multi1d< T > &chi, const multi1d< T > &psi, enum PlusMinus isign, const Real &epsilon) const
 Apply the derivative of the operator.
unsigned long nFlops (void) const
 Return the number of flops performed by operator().

Private Attributes

Handle< DiffLinearOperatorArray<
T, P, Q > > 
A

Detailed Description

template<typename T, typename P, typename Q>
class Chroma::DiffMdagLinOpArray< T, P, Q >

M^dag linear operator over arrays.

Linear operator forming M^dag from an operator M

Definition at line 238 of file ldag.h.


Constructor & Destructor Documentation

template<typename T, typename P, typename Q>
Chroma::DiffMdagLinOpArray< T, P, Q >::DiffMdagLinOpArray ( DiffLinearOperatorArray< T, P, Q > *  p  )  [inline]

Initialize pointer with existing pointer.

Requires that the pointer p is a return value of new

Definition at line 243 of file ldag.h.

template<typename T, typename P, typename Q>
Chroma::DiffMdagLinOpArray< T, P, Q >::DiffMdagLinOpArray ( Handle< DiffLinearOperatorArray< T, P, Q > >  p  )  [inline]

Copy pointer (one more owner).

Definition at line 246 of file ldag.h.

template<typename T, typename P, typename Q>
Chroma::DiffMdagLinOpArray< T, P, Q >::~DiffMdagLinOpArray (  )  [inline]

Destructor.

Definition at line 249 of file ldag.h.


Member Function Documentation

template<typename T, typename P, typename Q>
virtual void Chroma::DiffMdagLinOpArray< T, P, Q >::deriv ( P ds_u,
const multi1d< T > &  chi,
const multi1d< T > &  psi,
enum PlusMinus  isign,
const Real &  epsilon 
) const [inline, virtual]

Apply the derivative of the operator.

Deriv of chi^dag * A^dag * psi

Default implementation

Reimplemented from Chroma::DiffLinearOperatorArray< T, P, Q >.

Definition at line 292 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A, Chroma::MINUS, Chroma::PLUS, and Chroma::DiffMdagLinOpArray< T, P, Q >::size().

template<typename T, typename P, typename Q>
virtual void Chroma::DiffMdagLinOpArray< T, P, Q >::deriv ( P ds_u,
const multi1d< T > &  chi,
const multi1d< T > &  psi,
enum PlusMinus  isign 
) const [inline, virtual]

Apply the derivative of the operator.

Deriv of chi^dag * A^dag * psi

Default implementation

Reimplemented from Chroma::DiffLinearOperatorArray< T, P, Q >.

Definition at line 276 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A, Chroma::MINUS, Chroma::PLUS, and Chroma::DiffMdagLinOpArray< T, P, Q >::size().

template<typename T, typename P, typename Q>
const FermBC<T,P,Q>& Chroma::DiffMdagLinOpArray< T, P, Q >::getFermBC (  )  const [inline, virtual]

Return the fermion BC object for this linear operator.

Implements Chroma::DiffLinearOperatorArray< T, P, Q >.

Definition at line 252 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A.

template<typename T, typename P, typename Q>
unsigned long Chroma::DiffMdagLinOpArray< T, P, Q >::nFlops ( void   )  const [inline, virtual]

Return the number of flops performed by operator().

Reimplemented from Chroma::LinearOperatorArray< T >.

Definition at line 302 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A.

template<typename T, typename P, typename Q>
void Chroma::DiffMdagLinOpArray< T, P, Q >::operator() ( multi1d< T > &  chi,
const multi1d< T > &  psi,
enum PlusMinus  isign 
) const [inline, virtual]

Apply the operator onto a source vector.

For this operator, the sign is ignored

Implements Chroma::LinearOperatorArray< T >.

Definition at line 262 of file ldag.h.

References Chroma::MINUS, Chroma::PLUS, and Chroma::DiffMdagLinOpArray< T, P, Q >::size().

template<typename T, typename P, typename Q>
int Chroma::DiffMdagLinOpArray< T, P, Q >::size ( void   )  const [inline, virtual]

Length of array index.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 255 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A.

Referenced by Chroma::DiffMdagLinOpArray< T, P, Q >::deriv(), and Chroma::DiffMdagLinOpArray< T, P, Q >::operator()().

template<typename T, typename P, typename Q>
const Subset& Chroma::DiffMdagLinOpArray< T, P, Q >::subset ( void   )  const [inline, virtual]

Subset comes from underlying operator.

Implements Chroma::LinearOperatorArray< T >.

Definition at line 258 of file ldag.h.

References Chroma::DiffMdagLinOpArray< T, P, Q >::A.


Member Data Documentation

template<typename T, typename P, typename Q>
Handle< DiffLinearOperatorArray<T,P,Q> > Chroma::DiffMdagLinOpArray< T, P, Q >::A [private]

Definition at line 305 of file ldag.h.

Referenced by Chroma::DiffMdagLinOpArray< T, P, Q >::deriv(), Chroma::DiffMdagLinOpArray< T, P, Q >::getFermBC(), Chroma::DiffMdagLinOpArray< T, P, Q >::nFlops(), Chroma::DiffMdagLinOpArray< T, P, Q >::size(), and Chroma::DiffMdagLinOpArray< T, P, Q >::subset().


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:40:17 2009 for CHROMA by  doxygen 1.4.7