RVL::ScaleOpFwd< Scalar > Class Template Reference

ScaleOpFwd implementing the linear operator $ x\mapsto ax $ where a is a scalar. More...

#include <linop_base.hh>

Inheritance diagram for RVL::ScaleOpFwd< Scalar >:

RVL::LinearOp< Scalar > RVL::Operator< Scalar > RVL::Writeable List of all members.

Public Member Functions

 ScaleOpFwd (const Space< Scalar > &_sp, Scalar _mu)
 ScaleOpFwd (const ScaleOpFwd< Scalar > &s)
 ~ScaleOpFwd ()
const Space< Scalar > & getDomain () const
const Space< Scalar > & getRange () const
Scalar getScale () const
void setScale (Scalar _mu)
ostream & write (ostream &str) const

Protected Member Functions

virtual LinearOp< Scalar > * clone () const
void apply (const Vector< Scalar > &x, Vector< Scalar > &y) const
void applyAdj (const Vector< Scalar > &x, Vector< Scalar > &y) const

Detailed Description

template<class Scalar>
class RVL::ScaleOpFwd< Scalar >

ScaleOpFwd implementing the linear operator $ x\mapsto ax $ where a is a scalar.

In addition to the LinearOp_d methods, this class has methods to access the scalar $ a $: the setScale() method can be used to modify that scalar whereas the getScale() method can be used to access it.

Definition at line 754 of file linop_base.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVL::ScaleOpFwd< Scalar >::ScaleOpFwd ( const Space< Scalar > &  _sp,
Scalar  _mu 
)

Definition at line 800 of file linop_base.hh.

template<class Scalar>
RVL::ScaleOpFwd< Scalar >::ScaleOpFwd ( const ScaleOpFwd< Scalar > &  s  ) 

Definition at line 803 of file linop_base.hh.

template<class Scalar>
RVL::ScaleOpFwd< Scalar >::~ScaleOpFwd (  ) 

Definition at line 806 of file linop_base.hh.


Member Function Documentation

template<class Scalar>
virtual LinearOp<Scalar>* RVL::ScaleOpFwd< Scalar >::clone (  )  const [protected, virtual]

Implements RVL::Operator< Scalar >.

Definition at line 765 of file linop_base.hh.

template<class Scalar>
void RVL::ScaleOpFwd< Scalar >::apply ( const Vector< Scalar > &  x,
Vector< Scalar > &  y 
) const [protected, virtual]

Implements RVL::Operator< Scalar >.

Definition at line 770 of file linop_base.hh.

References RVL::Vector< Scalar >::copy(), RVL::Vector< Scalar >::scale(), and RVL::Vector< Scalar >::zero().

template<class Scalar>
void RVL::ScaleOpFwd< Scalar >::applyAdj ( const Vector< Scalar > &  x,
Vector< Scalar > &  y 
) const [protected, virtual]

Implements RVL::LinearOp< Scalar >.

Definition at line 786 of file linop_base.hh.

References RVL::LinearOp< Scalar >::applyOp().

template<class Scalar>
const Space<Scalar>& RVL::ScaleOpFwd< Scalar >::getDomain (  )  const [virtual]

Implements RVL::Operator< Scalar >.

Definition at line 807 of file linop_base.hh.

template<class Scalar>
const Space<Scalar>& RVL::ScaleOpFwd< Scalar >::getRange (  )  const [virtual]

Implements RVL::Operator< Scalar >.

Definition at line 808 of file linop_base.hh.

template<class Scalar>
Scalar RVL::ScaleOpFwd< Scalar >::getScale (  )  const

Definition at line 809 of file linop_base.hh.

Referenced by RVL::ScaleOpInv< Scalar >::ScaleOpInv().

template<class Scalar>
void RVL::ScaleOpFwd< Scalar >::setScale ( Scalar  _mu  ) 

Definition at line 810 of file linop_base.hh.

template<class Scalar>
ostream& RVL::ScaleOpFwd< Scalar >::write ( ostream &  str  )  const [virtual]

Implements RVL::Writeable.

Definition at line 812 of file linop_base.hh.

Referenced by RVL::ScaleOpInv< Scalar >::ScaleOpInv().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for RVL by  doxygen 1.4.7