Now only accept functiosn that use new FixedRef type
parent
1e4905ef04
commit
3d9d29d1c5
|
|
@ -455,9 +455,7 @@ struct Jacobian {
|
||||||
/// meta-function to generate JacobianTA optional reference
|
/// meta-function to generate JacobianTA optional reference
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
struct OptionalJacobian {
|
struct OptionalJacobian {
|
||||||
typedef Eigen::Matrix<double, traits::dimension<T>::value,
|
typedef FixedRef<traits::dimension<T>::value, traits::dimension<A>::value> type;
|
||||||
traits::dimension<A>::value> Jacobian;
|
|
||||||
typedef boost::optional<Jacobian&> type;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -224,9 +224,8 @@ template<class T>
|
||||||
struct apply_compose {
|
struct apply_compose {
|
||||||
typedef T result_type;
|
typedef T result_type;
|
||||||
static const int Dim = traits::dimension<T>::value;
|
static const int Dim = traits::dimension<T>::value;
|
||||||
typedef Eigen::Matrix<double, Dim, Dim> Jacobian;
|
T operator()(const T& x, const T& y, FixedRef<Dim, Dim> H1 = boost::none,
|
||||||
T operator()(const T& x, const T& y, boost::optional<Jacobian&> H1,
|
FixedRef<Dim, Dim> H2 = boost::none) const {
|
||||||
boost::optional<Jacobian&> H2) const {
|
|
||||||
return x.compose(y, H1, H2);
|
return x.compose(y, H1, H2);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue