ROL
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 26 of file ROL_SerialFunction.hpp.

Member Typedef Documentation

◆ size_type

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

Definition at line 28 of file ROL_SerialFunction.hpp.

◆ PV

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

Definition at line 31 of file ROL_SerialFunction.hpp.

Constructor & Destructor Documentation

◆ SerialFunction()

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

Member Function Documentation

◆ ts()

◆ clone()

◆ numTimeSteps()

◆ getInitialCondition()

◆ setInitialCondition()

template<typename Real>
void ROL::SerialFunction< Real >::setInitialCondition ( const Vector< Real > & u_initial)
inline

Definition at line 60 of file ROL_SerialFunction.hpp.

References u_initial_.

◆ getZeroState()

◆ getSkipInitialCondition()

◆ setSkipInitialCondition()

template<typename Real>
void ROL::SerialFunction< Real >::setSkipInitialCondition ( bool skip)
inline

Definition at line 65 of file ROL_SerialFunction.hpp.

References skipInitialCond_.

◆ getTimeStampsPtr()

template<typename Real>
TimeStampsPtr< Real > ROL::SerialFunction< Real >::getTimeStampsPtr ( ) const
inline

Definition at line 68 of file ROL_SerialFunction.hpp.

References timeStampsPtr_.

◆ setTimeStampsPtr()

template<typename Real>
void ROL::SerialFunction< Real >::setTimeStampsPtr ( const TimeStampsPtr< Real > & timeStampsPtr)
inline

Definition at line 70 of file ROL_SerialFunction.hpp.

References Nt_, and timeStampsPtr_.

◆ getTimeStamp() [1/2]

template<typename Real>
TimeStamp< Real > & ROL::SerialFunction< Real >::getTimeStamp ( size_type i)
inline

Definition at line 76 of file ROL_SerialFunction.hpp.

References timeStampsPtr_.

◆ getTimeStamp() [2/2]

template<typename Real>
const TimeStamp< Real > & ROL::SerialFunction< Real >::getTimeStamp ( size_type i) const
inline

Definition at line 77 of file ROL_SerialFunction.hpp.

References timeStampsPtr_.

◆ setTimeStamp()

template<typename Real>
void ROL::SerialFunction< Real >::setTimeStamp ( size_type i,
const TimeStamp< Real > & timeStamp )
inline

Definition at line 79 of file ROL_SerialFunction.hpp.

References timeStampsPtr_.

Member Data Documentation

◆ u_initial_

template<typename Real>
Ptr<Vector<Real> > ROL::SerialFunction< Real >::u_initial_
private

Definition at line 33 of file ROL_SerialFunction.hpp.

Referenced by getInitialCondition(), SerialFunction(), and setInitialCondition().

◆ u_zero_

template<typename Real>
Ptr<Vector<Real> > ROL::SerialFunction< Real >::u_zero_
private

Definition at line 34 of file ROL_SerialFunction.hpp.

Referenced by getZeroState(), and SerialFunction().

◆ timeStampsPtr_

template<typename Real>
TimeStampsPtr<Real> ROL::SerialFunction< Real >::timeStampsPtr_
private

◆ workspace_

template<typename Real>
VectorWorkspace<Real> ROL::SerialFunction< Real >::workspace_
mutableprivate

Definition at line 36 of file ROL_SerialFunction.hpp.

Referenced by clone().

◆ Nt_

template<typename Real>
size_type ROL::SerialFunction< Real >::Nt_
private

Definition at line 37 of file ROL_SerialFunction.hpp.

Referenced by numTimeSteps(), SerialFunction(), and setTimeStampsPtr().

◆ skipInitialCond_

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

Definition at line 38 of file ROL_SerialFunction.hpp.

Referenced by getSkipInitialCondition(), and setSkipInitialCondition().


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