VariableIndex
parent
d05d2af6b5
commit
80fdd69a14
|
@ -24,8 +24,7 @@ namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class FG>
|
template<class FG>
|
||||||
void VariableIndex::augment(const FG& factors,
|
void VariableIndex::augment(const FG& factors, const FactorIndices* newFactorIndices) {
|
||||||
boost::optional<const FactorIndices&> newFactorIndices) {
|
|
||||||
gttic(VariableIndex_augment);
|
gttic(VariableIndex_augment);
|
||||||
|
|
||||||
// Augment index for each factor
|
// Augment index for each factor
|
||||||
|
|
|
@ -126,7 +126,16 @@ class GTSAM_EXPORT VariableIndex {
|
||||||
* solving problems incrementally.
|
* solving problems incrementally.
|
||||||
*/
|
*/
|
||||||
template<class FG>
|
template<class FG>
|
||||||
void augment(const FG& factors, boost::optional<const FactorIndices&> newFactorIndices = boost::none);
|
void augment(const FG& factors, const FactorIndices* newFactorIndices = nullptr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An overload of augment() that takes a single factor. and l-value
|
||||||
|
* reference to FactorIndeces.
|
||||||
|
*/
|
||||||
|
template<class FG>
|
||||||
|
void augment(const FG& factor, const FactorIndices& newFactorIndices) {
|
||||||
|
augment(factor, &newFactorIndices);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Augment the variable index after an existing factor now affects to more
|
* Augment the variable index after an existing factor now affects to more
|
||||||
|
|
Loading…
Reference in New Issue