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
6 files
+ 178
25
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -147,7 +147,10 @@ public:
void resetLocalParamUpdated();
virtual void setIdentity(bool _notify = true);
virtual void setZero (bool _notify = true);
void setZero (bool _notify = true);
virtual Eigen::VectorXd identity() const;
Eigen::VectorXd zero() const;
/** \brief perturb state
*/
@@ -299,6 +302,14 @@ inline void StateBlock::setZero(bool _notify)
setIdentity(_notify);
}
inline Eigen::VectorXd StateBlock::identity() const
{
return Eigen::VectorXd::Zero(state_size_);
}
inline Eigen::VectorXd StateBlock::zero() const
{
return identity();
}
}// namespace wolf
Loading