RVL::ShiftedQuadraticForm< Scalar > Class Template Reference

ShiftedQuadraticForm creates a function of the form $ x \mapsto \frac{1}{2} |A x - b|^2 $ in which A is a linear operator, b a vector. More...

#include <ls.hh>

Inheritance diagram for RVL::ShiftedQuadraticForm< Scalar >:

RVL::Functional< Scalar > RVL::Writeable List of all members.

Public Member Functions

 ShiftedQuadraticForm (const LinearOp< Scalar > &AA, const Vector< Scalar > &bb)
 ShiftedQuadraticForm (const ShiftedQuadraticForm< Scalar > &q)
 ~ShiftedQuadraticForm ()
const Space< Scalar > & getDomain () const
ostream & write (ostream &str) const

Protected Member Functions

void apply (const Vector< Scalar > &x, Scalar &val) const
void applyGradient (const Vector< Scalar > &x, Vector< Scalar > &g) const
void applyHessian (const Vector< Scalar > &x, const Vector< Scalar > &delx, Vector< Scalar > &dely) const
virtual Functional< Scalar > * clone () const

Detailed Description

template<class Scalar>
class RVL::ShiftedQuadraticForm< Scalar >

ShiftedQuadraticForm creates a function of the form $ x \mapsto \frac{1}{2} |A x - b|^2 $ in which A is a linear operator, b a vector.

Only differentiable when Scalar is not a complex type.

Definition at line 404 of file ls.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVL::ShiftedQuadraticForm< Scalar >::ShiftedQuadraticForm ( const LinearOp< Scalar > &  AA,
const Vector< Scalar > &  bb 
)

Definition at line 470 of file ls.hh.

template<class Scalar>
RVL::ShiftedQuadraticForm< Scalar >::ShiftedQuadraticForm ( const ShiftedQuadraticForm< Scalar > &  q  ) 

Definition at line 474 of file ls.hh.

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

Definition at line 477 of file ls.hh.


Member Function Documentation

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

Implements RVL::Functional< Scalar >.

Definition at line 417 of file ls.hh.

template<class Scalar>
void RVL::ShiftedQuadraticForm< Scalar >::applyGradient ( const Vector< Scalar > &  x,
Vector< Scalar > &  g 
) const [protected, virtual]

Implements RVL::Functional< Scalar >.

Definition at line 433 of file ls.hh.

template<class Scalar>
void RVL::ShiftedQuadraticForm< Scalar >::applyHessian ( const Vector< Scalar > &  x,
const Vector< Scalar > &  delx,
Vector< Scalar > &  dely 
) const [protected, virtual]

Implements RVL::Functional< Scalar >.

Definition at line 449 of file ls.hh.

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

Implements RVL::Functional< Scalar >.

Definition at line 464 of file ls.hh.

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

Implements RVL::Functional< Scalar >.

Definition at line 479 of file ls.hh.

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

Implements RVL::Writeable.

Definition at line 481 of file ls.hh.


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