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

Differentiable M^dag.M linear operator. More...

#include <lmdagm.h>

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

Chroma::DiffLinearOperator< T, P, Q > Chroma::LinearOperator< T > List of all members.

Public Member Functions

 DiffMdagMLinOp (DiffLinearOperator< T, P, Q > *p)
 Initialize pointer with existing pointer.
 DiffMdagMLinOp (Handle< DiffLinearOperator< T, P, Q > > p)
 Copy pointer (one more owner).
 ~DiffMdagMLinOp ()
 Destructor.
const FermBC< T, P, Q > & getFermBC () const
 Return the fermion BC object for this linear operator.
const Subset & subset () const
 Subset comes from underlying operator.
void operator() (T &chi, const T &psi, enum PlusMinus isign) const
 Apply the operator onto a source vector.
virtual void deriv (P &ds_u, const T &chi, const T &psi, enum PlusMinus isign) const
 Apply the derivative of the operator.
virtual void deriv (P &ds_u, const T &chi, const 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< DiffLinearOperator<
T, P, Q > > 
A

Detailed Description

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

Differentiable M^dag.M linear operator.

Diff. Linear operator forming M^dag.M from an operator M

Definition at line 160 of file lmdagm.h.


Constructor & Destructor Documentation

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

Initialize pointer with existing pointer.

Requires that the pointer p is a return value of new

Definition at line 165 of file lmdagm.h.

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

Copy pointer (one more owner).

Definition at line 168 of file lmdagm.h.

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

Destructor.

Definition at line 171 of file lmdagm.h.


Member Function Documentation

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

Apply the derivative of the operator.

Deriv of chi^dag * A^dag * A * psi

Default implementation

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

Definition at line 216 of file lmdagm.h.

References Chroma::DiffMdagMLinOp< T, P, Q >::A, Chroma::MINUS, Chroma::PLUS, and T.

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

Apply the derivative of the operator.

Deriv of chi^dag * A^dag * A * psi

Default implementation

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

Definition at line 195 of file lmdagm.h.

References Chroma::DiffMdagMLinOp< T, P, Q >::A, Chroma::MINUS, Chroma::PLUS, and T.

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

Return the fermion BC object for this linear operator.

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

Definition at line 174 of file lmdagm.h.

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

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

Return the number of flops performed by operator().

Reimplemented from Chroma::LinearOperator< T >.

Definition at line 231 of file lmdagm.h.

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

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

Apply the operator onto a source vector.

For this operator, the sign is ignored

Implements Chroma::LinearOperator< T >.

Definition at line 181 of file lmdagm.h.

References Chroma::MINUS, Chroma::PLUS, and T.

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

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 177 of file lmdagm.h.

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


Member Data Documentation

template<typename T, typename P, typename Q>
Handle< DiffLinearOperator<T,P,Q> > Chroma::DiffMdagMLinOp< T, P, Q >::A [private]

Definition at line 234 of file lmdagm.h.

Referenced by Chroma::DiffMdagMLinOp< T, P, Q >::deriv(), Chroma::DiffMdagMLinOp< T, P, Q >::getFermBC(), Chroma::DiffMdagMLinOp< T, P, Q >::nFlops(), and Chroma::DiffMdagMLinOp< 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