Made numericalDerivative global functions inline so they can be included from multiple source files and linked together without name collisions

release/4.3a0
John Rogers 2010-09-21 20:36:33 +00:00
parent 2f83d194eb
commit 92539ed08c
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ namespace gtsam {
/** global functions for converting to a LieVector for use with numericalDerivative */ /** global functions for converting to a LieVector for use with numericalDerivative */
LieVector makeLieVector(const Vector& v) { return LieVector(v); } inline LieVector makeLieVector(const Vector& v) { return LieVector(v); }
LieVector makeLieVectorD(double d) { return LieVector(Vector_(1, d)); } inline LieVector makeLieVectorD(double d) { return LieVector(Vector_(1, d)); }
/** /**
* Numerically compute gradient of scalar function * Numerically compute gradient of scalar function