ROL
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
ROL::SerialFunction< Real > Class Template Reference

Provides behavior common to SerialObjective as SerialConstaint. More...

#include <ROL_SerialFunction.hpp>

+ Inheritance diagram for ROL::SerialFunction< Real >:

Public Types

using size_type = typename std::vector< Real >::size_type
 

Public Member Functions

 SerialFunction (const Vector< Real > &u_initial, const TimeStampsPtr< Real > &timeStampsPtr)
 
size_type numTimeSteps () const
 
const Vector< Real > & getInitialCondition () const
 
void setInitialCondition (const Vector< Real > &u_initial)
 
const Vector< Real > & getZeroState () const
 
bool getSkipInitialCondition () const
 
void setSkipInitialCondition (bool skip)
 
TimeStampsPtr< Real > getTimeStampsPtr () const
 
void setTimeStampsPtr (const TimeStampsPtr< Real > &timeStampsPtr)
 
TimeStamp< Real > & getTimeStamp (size_type i)
 
const TimeStamp< Real > & getTimeStamp (size_type i) const
 
void setTimeStamp (size_type i, const TimeStamp< Real > &timeStamp)
 

Protected Member Functions

const TimeStamp< Real > & ts (size_type i) const
 
Ptr< Vector< Real > > clone (const Vector< Real > &x)
 

Private Types

using PV = PartitionedVector< Real >
 

Private Attributes

Ptr< Vector< Real > > u_initial_
 
Ptr< Vector< Real > > u_zero_
 
TimeStampsPtr< Real > timeStampsPtr_
 
VectorWorkspace< Real > workspace_
 
size_type Nt_
 
bool skipInitialCond_ = false
 

Detailed Description

template<typename Real>
class ROL::SerialFunction< Real >

Provides behavior common to SerialObjective as SerialConstaint.

Definition at line 59 of file ROL_SerialFunction.hpp.

Member Typedef Documentation

template<typename Real >
using ROL::SerialFunction< Real >::size_type = typename std::vector<Real>::size_type

Definition at line 61 of file ROL_SerialFunction.hpp.

template<typename Real >
using ROL::SerialFunction< Real >::PV = PartitionedVector<Real>
private

Definition at line 64 of file ROL_SerialFunction.hpp.

Constructor & Destructor Documentation

template<typename Real >
ROL::SerialFunction< Real >::SerialFunction ( const Vector< Real > &  u_initial,
const TimeStampsPtr< Real > &  timeStampsPtr 
)
inline

Member Function Documentation

template<typename Real >
const TimeStamp<Real>& ROL::SerialFunction< Real >::ts ( size_type  i) const
inlineprotected
template<typename Real >
Ptr<Vector<Real> > ROL::SerialFunction< Real >::clone ( const Vector< Real > &  x)
inlineprotected
template<typename Real >
size_type ROL::SerialFunction< Real >::numTimeSteps ( ) const
inline
template<typename Real >
const Vector<Real>& ROL::SerialFunction< Real >::getInitialCondition ( ) const
inline
template<typename Real >
void ROL::SerialFunction< Real >::setInitialCondition ( const Vector< Real > &  u_initial)
inline

Definition at line 93 of file ROL_SerialFunction.hpp.

References ROL::SerialFunction< Real >::u_initial_.

template<typename Real >
const Vector<Real>& ROL::SerialFunction< Real >::getZeroState ( ) const
inline
template<typename Real >
bool ROL::SerialFunction< Real >::getSkipInitialCondition ( ) const
inline
template<typename Real >
void ROL::SerialFunction< Real >::setSkipInitialCondition ( bool  skip)
inline
template<typename Real >
TimeStampsPtr<Real> ROL::SerialFunction< Real >::getTimeStampsPtr ( ) const
inline
template<typename Real >
void ROL::SerialFunction< Real >::setTimeStampsPtr ( const TimeStampsPtr< Real > &  timeStampsPtr)
inline
template<typename Real >
TimeStamp<Real>& ROL::SerialFunction< Real >::getTimeStamp ( size_type  i)
inline
template<typename Real >
const TimeStamp<Real>& ROL::SerialFunction< Real >::getTimeStamp ( size_type  i) const
inline
template<typename Real >
void ROL::SerialFunction< Real >::setTimeStamp ( size_type  i,
const TimeStamp< Real > &  timeStamp 
)
inline

Member Data Documentation

template<typename Real >
Ptr<Vector<Real> > ROL::SerialFunction< Real >::u_initial_
private
template<typename Real >
Ptr<Vector<Real> > ROL::SerialFunction< Real >::u_zero_
private
template<typename Real >
TimeStampsPtr<Real> ROL::SerialFunction< Real >::timeStampsPtr_
private
template<typename Real >
VectorWorkspace<Real> ROL::SerialFunction< Real >::workspace_
mutableprivate

Definition at line 69 of file ROL_SerialFunction.hpp.

Referenced by ROL::SerialFunction< Real >::clone().

template<typename Real >
size_type ROL::SerialFunction< Real >::Nt_
private
template<typename Real >
bool ROL::SerialFunction< Real >::skipInitialCond_ = false
private

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