Fixes to DiscreteConditional
parent
4213c5d4fd
commit
b5ea7e1ba0
|
@ -194,6 +194,13 @@ namespace gtsam {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ******************************************************************************** */
|
||||||
|
void DiscreteConditional::permuteWithInverse(const Permutation& inversePermutation){
|
||||||
|
IndexConditional::permuteWithInverse(inversePermutation);
|
||||||
|
Potentials::permute(inversePermutation);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ******************************************************************************** */
|
/* ******************************************************************************** */
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
@ -111,6 +111,11 @@ namespace gtsam {
|
||||||
/// sample in place, stores result in partial solution
|
/// sample in place, stores result in partial solution
|
||||||
void sampleInPlace(Values& parentsValues) const;
|
void sampleInPlace(Values& parentsValues) const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Permutes both IndexConditional and Potentials.
|
||||||
|
*/
|
||||||
|
void permuteWithInverse(const Permutation& inversePermutation);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue