forward declare traits and moved MakeOptionalJacobian here...
parent
3a99e74bb7
commit
9a0f973e71
|
|
@ -168,5 +168,20 @@ public:
|
|||
Jacobian* operator->(){ return pointer_; }
|
||||
};
|
||||
|
||||
// forward declate
|
||||
template <typename T> struct traits;
|
||||
|
||||
/**
|
||||
* @brief: meta-function to generate JacobianTA optional reference
|
||||
* Used mainly by Expressions
|
||||
* @param T return type
|
||||
* @param A argument type
|
||||
*/
|
||||
template<class T, class A>
|
||||
struct MakeOptionalJacobian {
|
||||
typedef OptionalJacobian<traits<T>::dimension,
|
||||
traits<A>::dimension> type;
|
||||
};
|
||||
|
||||
} // namespace gtsam
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue