Fixed bug in calculateEstimate() function when provideing a key. Function did not get migrated to the new Values structure
parent
c48a9431a0
commit
66c771b56c
|
|
@ -593,11 +593,11 @@ Values ISAM2<CONDITIONAL, GRAPH>::calculateEstimate() const {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class CONDITIONAL, class GRAPH>
|
template<class CONDITIONAL, class GRAPH>
|
||||||
template<class KEY>
|
template<class VALUE>
|
||||||
typename KEY::Value ISAM2<CONDITIONAL, GRAPH>::calculateEstimate(const KEY& key) const {
|
VALUE ISAM2<CONDITIONAL, GRAPH>::calculateEstimate(Key key) const {
|
||||||
const Index index = getOrdering()[key];
|
const Index index = getOrdering()[key];
|
||||||
const SubVector delta = getDelta()[index];
|
const SubVector delta = getDelta()[index];
|
||||||
return getLinearizationPoint()[key].retract(delta);
|
return theta_.at<VALUE>(key).retract(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
|
||||||
|
|
@ -390,8 +390,8 @@ public:
|
||||||
* @param key
|
* @param key
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
template<class KEY>
|
template<class VALUE>
|
||||||
typename KEY::Value calculateEstimate(const KEY& key) const;
|
VALUE calculateEstimate(Key key) const;
|
||||||
|
|
||||||
/// @name Public members for non-typical usage
|
/// @name Public members for non-typical usage
|
||||||
//@{
|
//@{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue