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

Classes

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

Implimpl_
 

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
inline

Definition at line 44 of file Constraint.hpp.

◆ test()

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

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_
protected

Definition at line 42 of file Constraint.hpp.


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