Public Member Functions | Static Private Member Functions | Private Attributes
TSFExtendedOps::OpTimesLC< Scalar, Node > Class Template Reference

Class OpTimesLC holds an operator times something convertible to a vector. More...

Inheritance diagram for TSFExtendedOps::OpTimesLC< Scalar, Node >:
TSFExtendedOps::ConvertibleToVector< Scalar >

List of all members.

Public Member Functions

virtual ~OpTimesLC ()
 OpTimesLC (const Scalar &alpha, const Node &x)
 OpTimesLC (const Scalar &alpha, const TSFExtended::LinearOperator< Scalar > &op, const Node &x)
void evalInto (TSFExtended::Vector< Scalar > &result) const
 Evaluate the term into the argument vector, overwriting the previous value of the argument.
void addInto (TSFExtended::Vector< Scalar > &result, LCSign sign=LCAdd) const
 Add the term into the argument vector.
virtual TSFExtended::Vector
< Scalar > 
eval () const
 Evaluate the term and return its value.
bool containsVector (const Thyra::VectorBase< Scalar > *vec) const
 Determine whether this term contains the given vector.
const LinearOperator< Scalar > & op () const
const Scalar & alpha () const
const Node & node () const
Scalar norm2 () const
Scalar normInf () const

Static Private Member Functions

static Scalar one ()
static Scalar zero ()

Private Attributes

Scalar alpha_
TSFExtended::LinearOperator
< Scalar > 
op_
Node x_

Detailed Description

template<class Scalar, class Node>
class TSFExtendedOps::OpTimesLC< Scalar, Node >

Class OpTimesLC holds an operator times something convertible to a vector.

Definition at line 116 of file TSFLinearCombinationDecl.hpp.


Constructor & Destructor Documentation

template<class Scalar, class Node>
virtual TSFExtendedOps::OpTimesLC< Scalar, Node >::~OpTimesLC ( ) [inline, virtual]

Definition at line 121 of file TSFLinearCombinationDecl.hpp.

template<class Scalar , class Node >
TSFExtendedOps::OpTimesLC< Scalar, Node >::OpTimesLC ( const Scalar &  alpha,
const Node &  x 
) [inline]

Definition at line 54 of file TSFLinearCombinationImpl.hpp.

template<class Scalar , class Node >
TSFExtendedOps::OpTimesLC< Scalar, Node >::OpTimesLC ( const Scalar &  alpha,
const TSFExtended::LinearOperator< Scalar > &  op,
const Node &  x 
) [inline]

Definition at line 61 of file TSFLinearCombinationImpl.hpp.


Member Function Documentation

template<class Scalar , class Node >
void TSFExtendedOps::OpTimesLC< Scalar, Node >::addInto ( TSFExtended::Vector< Scalar > &  result,
LCSign  sign = LCAdd 
) const [inline]

Add the term into the argument vector.

Definition at line 83 of file TSFLinearCombinationImpl.hpp.

References TSFExtended::Vector< Scalar >::update().

template<class Scalar, class Node>
const Scalar& TSFExtendedOps::OpTimesLC< Scalar, Node >::alpha ( ) const [inline]
template<class Scalar , class Node >
bool TSFExtendedOps::OpTimesLC< Scalar, Node >::containsVector ( const Thyra::VectorBase< Scalar > *  vec) const [inline]

Determine whether this term contains the given vector.

Definition at line 117 of file TSFLinearCombinationImpl.hpp.

Referenced by TSFExtended::Vector< Scalar >::operator=().

template<class Scalar , class Node >
TSFExtended::Vector< Scalar > TSFExtendedOps::OpTimesLC< Scalar, Node >::eval ( ) const [inline, virtual]
template<class Scalar , class Node >
void TSFExtendedOps::OpTimesLC< Scalar, Node >::evalInto ( TSFExtended::Vector< Scalar > &  result) const [inline]

Evaluate the term into the argument vector, overwriting the previous value of the argument.

Definition at line 69 of file TSFLinearCombinationImpl.hpp.

References TSFExtended::Vector< Scalar >::scale().

Referenced by TSFExtended::Vector< Scalar >::operator=().

template<class Scalar, class Node>
const Node& TSFExtendedOps::OpTimesLC< Scalar, Node >::node ( ) const [inline]
template<class Scalar, class Node>
Scalar TSFExtendedOps::OpTimesLC< Scalar, Node >::norm2 ( ) const [inline]
template<class Scalar, class Node>
Scalar TSFExtendedOps::OpTimesLC< Scalar, Node >::normInf ( ) const [inline]
template<class Scalar, class Node>
static Scalar TSFExtendedOps::OpTimesLC< Scalar, Node >::one ( ) [inline, static, private]

Definition at line 169 of file TSFLinearCombinationDecl.hpp.

template<class Scalar, class Node>
const LinearOperator<Scalar>& TSFExtendedOps::OpTimesLC< Scalar, Node >::op ( ) const [inline]
template<class Scalar, class Node>
static Scalar TSFExtendedOps::OpTimesLC< Scalar, Node >::zero ( ) [inline, static, private]

Definition at line 172 of file TSFLinearCombinationDecl.hpp.


Member Data Documentation

template<class Scalar, class Node>
Scalar TSFExtendedOps::OpTimesLC< Scalar, Node >::alpha_ [private]
template<class Scalar, class Node>
TSFExtended::LinearOperator<Scalar> TSFExtendedOps::OpTimesLC< Scalar, Node >::op_ [private]
template<class Scalar, class Node>
Node TSFExtendedOps::OpTimesLC< Scalar, Node >::x_ [private]

Site Contact