HQP  1.9.7
Omu_DepVec Class Reference

Internally used vector of dependent variables. More...

#include <Omu_Deps.h>

Inheritance diagram for Omu_DepVec:
[legend]

Public Member Functions

void size (int dim, int nx, int nu, int ndx, int nxf, int nq)
 Allocate and initialize memory.
 
void adapt_size (int dim)
 Resize dimension without reinitializing memory. More...
 
void analyze_struct ()
 Analyze dependencies after setup process.
 
Implementation of Omu_DependentVec interface
void set_linear (int wrt=Omu_Dependent::WRT_ALL, bool value=true)
 Mark linear dependency.
 
bool is_linear (int wrt=Omu_Dependent::WRT_ALL) const
 Query if a dependency is linear.
 
void set_linear_element (int i, int wrt=Omu_Dependent::WRT_ALL, bool value=true)
 Mark linear element of dependent vector.
 
bool is_linear_element (int i, int wrt=Omu_Dependent::WRT_ALL) const
 Query if an element of the dependent vector is linear.
 
void set_linear_variable (int vec, int j, bool value=true)
 Mark a variable that appears linear in all elements.
 
bool is_linear_variable (int vec, int j) const
 Query if a variable is linear in all elements.
 
- Public Member Functions inherited from Omu_DependentVec
void set_required_J (bool value=true)
 Set flag indicating that Jacobians are required.
 
bool is_required_J () const
 Query if Jacobians are required when dependent vector is evaluated.
 
- Public Member Functions inherited from Omu_Vec
 Omu_Vec ()
 allocate empty vector
 
virtual ~Omu_Vec ()
 destroy vector
 
void resize (int dim)
 resize vector
 
- Public Member Functions inherited from Mesch::VECP
 VECP ()
 
 VECP (VEC *cv)
 
VEC * operator= (VEC *nv)
 
Real & operator[] (int j)
 
VEC * operator-> ()
 
 operator VEC * ()
 
 operator const VEC * ()
 
const Real & operator[] (int j) const
 
const VEC * operator-> () const
 
 operator const VEC * () const
 

Public Attributes

bool c_setup
 indicate setup process (call to set_linear* allowed)
 
- Public Attributes inherited from Omu_DependentVec
Omu_Jacobian Jx
 Jacobian wrt x (initial states of sample period)
 
Omu_Jacobian Ju
 Jacobian wrt u (control parameters of stage)
 
Omu_Jacobian Jdx
 Jacobian wrt dx (time derivative of x)
 
Omu_Jacobian Jxf
 Jacobian wrt xf (final states of sample period)
 
Omu_Jacobian Jq
 Jacobian wrt q (sensitivity parameters)
 

Protected Member Functions

 Omu_DepVec (const Omu_DepVec &cv)
 
Omu_DepVecoperator= (const Omu_DepVec &)
 
- Protected Member Functions inherited from Omu_DependentVec
 Omu_DependentVec (const Omu_DependentVec &)
 
Omu_DependentVecoperator= (const Omu_DependentVec &)
 
- Protected Member Functions inherited from Omu_Vec
 Omu_Vec (const Omu_Vec &v)
 protect copy constructor and operator= as they should not be used
 
Omu_Vecoperator= (const Omu_Vec &v)
 

Protected Attributes

IVECP _linear_flags
 
IVECP _linear_vars
 
- Protected Attributes inherited from Omu_DependentVec
bool _required_J
 
- Protected Attributes inherited from Mesch::VECP
VEC * _v
 wrapped VEC*
 

Detailed Description

Internally used vector of dependent variables.

Member Function Documentation

void Omu_DepVec::adapt_size ( int  dim)

Resize dimension without reinitializing memory.

Argument dim must not be larger than allocated dim.


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