OpenMD  2.5
Molecular Dynamics in the Open
QuantLib::Constraint Class Reference

Base constraint class. More...

#include <Constraint.hpp>

Inheritance diagram for QuantLib::Constraint:
QuantLib::BoundaryConstraint QuantLib::CompositeConstraint QuantLib::NoConstraint QuantLib::PositiveConstraint


class  Impl
 Base class for constraint implementations. More...

Public Member Functions

bool empty () const
bool test (const DynamicVector< RealType > &p) const
RealType update (DynamicVector< RealType > &p, const DynamicVector< RealType > &direction, RealType beta)
 Constraint (Impl *impl=NULL)

Protected Attributes


Detailed Description

Base constraint class.

Definition at line 33 of file Constraint.hpp.

Constructor & Destructor Documentation

◆ Constraint()

QuantLib::Constraint::Constraint ( Constraint::Impl impl = NULL)

Definition at line 26 of file Constraint.cpp.

Member Function Documentation

◆ empty()

bool QuantLib::Constraint::empty ( ) const

Definition at line 44 of file Constraint.hpp.

◆ test()

bool QuantLib::Constraint::test ( const DynamicVector< RealType > &  p) const

Definition at line 45 of file Constraint.hpp.

References QuantLib::Constraint::Impl::test().

Referenced by update(), and QuantLib::LineSearch::update().

◆ update()

RealType QuantLib::Constraint::update ( DynamicVector< RealType > &  p,
const DynamicVector< RealType > &  direction,
RealType  beta 

Member Data Documentation

◆ impl_

Impl* QuantLib::Constraint::impl_

Definition at line 42 of file Constraint.hpp.

The documentation for this class was generated from the following files: