Fixed ambiguous GC constructor
parent
b24af8554b
commit
7ad8c15028
|
|
@ -25,9 +25,9 @@
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<typename PARENTS>
|
template<class PARENTS>
|
||||||
GaussianConditionalUnordered::GaussianConditionalUnordered(Index key, const Vector& d,
|
GaussianConditionalUnordered::GaussianConditionalUnordered(Index key, const Vector& d,
|
||||||
const Matrix& R, const PARENTS& parents, const SharedDiagonal& sigmas) :
|
const Matrix& R, const PARENTS& parents, const SharedDiagonal& sigmas, const typename PARENTS::value_type*) :
|
||||||
BaseFactor(boost::join(boost::assign::cref_list_of<1,typename PARENTS::value_type>(std::make_pair(key, R)), parents), d, sigmas),
|
BaseFactor(boost::join(boost::assign::cref_list_of<1,typename PARENTS::value_type>(std::make_pair(key, R)), parents), d, sigmas),
|
||||||
BaseConditional(1) {}
|
BaseConditional(1) {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,11 @@ namespace gtsam {
|
||||||
/** Constructor with number of arbitrary parents. \f$ |Rx+sum(Ai*xi)-d| \f$
|
/** Constructor with number of arbitrary parents. \f$ |Rx+sum(Ai*xi)-d| \f$
|
||||||
* @tparam PARENTS A container whose value type is std::pair<Key, Matrix>, specifying the
|
* @tparam PARENTS A container whose value type is std::pair<Key, Matrix>, specifying the
|
||||||
* collection of parent keys and matrices. */
|
* collection of parent keys and matrices. */
|
||||||
template<typename PARENTS>
|
template<class PARENTS>
|
||||||
GaussianConditionalUnordered(Key key, const Vector& d,
|
GaussianConditionalUnordered(Key key, const Vector& d,
|
||||||
const Matrix& R, const PARENTS& parents,
|
const Matrix& R, const PARENTS& parents,
|
||||||
const SharedDiagonal& sigmas = SharedDiagonal());
|
const SharedDiagonal& sigmas = SharedDiagonal(),
|
||||||
|
const typename PARENTS::value_type* = 0);
|
||||||
|
|
||||||
/** Constructor with arbitrary number of frontals and parents.
|
/** Constructor with arbitrary number of frontals and parents.
|
||||||
* @tparam TERMS A container whose value type is std::pair<Key, Matrix>, specifying the
|
* @tparam TERMS A container whose value type is std::pair<Key, Matrix>, specifying the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue