Skip to content
Snippets Groups Projects

WIP: Resolve "Complete state vector new data structure?"

Closed Joan Solà Ortega requested to merge 287-complete-state-vector-new-data-structure into devel
4 files
+ 98
7
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -146,6 +146,9 @@ public:
**/
void resetLocalParamUpdated();
virtual void setIdentity(bool _notify = true);
virtual void setZero (bool _notify = true);
/** \brief perturb state
*/
void perturb(double amplitude = 0.1);
@@ -286,6 +289,17 @@ inline double* StateBlock::getStateData()
return state_.data();
}
inline void StateBlock::setIdentity(bool _notify)
{
setState( VectorXd::Zero(state_size_), _notify );
}
inline void StateBlock::setZero(bool _notify)
{
setIdentity(_notify);
}
}// namespace wolf
#endif
Loading