13 #ifndef _OCRABASE_LINEAR_FUNCTION_H_ 14 #define _OCRABASE_LINEAR_FUNCTION_H_ 57 template<
class Derived,
class VectorBase>
67 const MatrixXd&
getA()
const;
68 const VectorXd&
getb()
const;
69 void changeA(
const MatrixXd& A);
70 void changeb(
const VectorXd& b);
89 virtual void doChangeA(
const MatrixXd& A);
90 virtual void doChangeb(
const VectorXd& b);
113 mutable bool _inhibitPropagationFromb;
117 template<
class Derived,
class VectorBase>
118 inline LinearFunction::LinearFunction(
Variable&
x,
const MatrixBase<Derived>& A,
const VectorBase& b)
124 ,_inhibitPropagationFromb(false)
139 #endif //_OCRABASE_LINEAR_FUNCTION_H_ virtual void doUpdateInputSizeEnd()
virtual void updateJacobian() const
void desinhibitPropagationFromb() const
virtual void doChangeb(const VectorXd &b)
virtual void doChangeA(const MatrixXd &A)
void changeA(const MatrixXd &A)
virtual void updateb() const
virtual void updateValue() const
void changeb(const VectorXd &b)
#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
const VectorXd & getb() const
void invalidateb(int timestamp)
This class represents a variable in a mathematical sense.
void inhibitPropagationFromb() const
const MatrixXd & getA() const
Declaration file of the Function class.
void testLinearFunction()
#define ocra_assert(ocra_expression)
#define OCRA_STATIC_ASSERT_VECTOR_OR_DYNAMIC_MATRIX(TYPE)