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

Differentiable M^dag linear operator. More...

#include <ldag.h>

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

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

Public Member Functions

 DiffMdagLinOp (DiffLinearOperator< T, P, Q > *p)
 Initialize pointer with existing pointer.
 DiffMdagLinOp (Handle< DiffLinearOperator< T, P, Q > > p)
 Copy pointer (one more owner).
 ~DiffMdagLinOp ()
 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::DiffMdagLinOp< T, P, Q >

Differentiable M^dag linear operator.

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

Definition at line 161 of file ldag.h.


Constructor & Destructor Documentation

template<typename T, typename P, typename Q>
Chroma::DiffMdagLinOp< T, P, Q >::DiffMdagLinOp ( 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 166 of file ldag.h.

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

Copy pointer (one more owner).

Definition at line 169 of file ldag.h.

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

Destructor.

Definition at line 172 of file ldag.h.


Member Function Documentation

template<typename T, typename P, typename Q>
virtual void Chroma::DiffMdagLinOp< 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 * psi

Default implementation

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

Definition at line 212 of file ldag.h.

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

template<typename T, typename P, typename Q>
virtual void Chroma::DiffMdagLinOp< 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 * psi

Default implementation

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

Definition at line 196 of file ldag.h.

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

template<typename T, typename P, typename Q>
const FermBC<T,P,Q>& Chroma::DiffMdagLinOp< 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 175 of file ldag.h.

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

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

Return the number of flops performed by operator().

Reimplemented from Chroma::LinearOperator< T >.

Definition at line 222 of file ldag.h.

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

template<typename T, typename P, typename Q>
void Chroma::DiffMdagLinOp< 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 182 of file ldag.h.

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

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

Subset comes from underlying operator.

Implements Chroma::LinearOperator< T >.

Definition at line 178 of file ldag.h.

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


Member Data Documentation

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

Definition at line 225 of file ldag.h.

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