Avoid malloc in common case?
parent
fd376a5247
commit
98ae00f1ef
|
|
@ -101,9 +101,9 @@ namespace gtsam {
|
||||||
if (H2) *H2 = zeros(2, point.dim());
|
if (H2) *H2 = zeros(2, point.dim());
|
||||||
std::cout << e.what() << ": Landmark "<< DefaultKeyFormatter(this->key2())
|
std::cout << e.what() << ": Landmark "<< DefaultKeyFormatter(this->key2())
|
||||||
<< " behind Camera " << DefaultKeyFormatter(this->key1()) << std::endl;
|
<< " behind Camera " << DefaultKeyFormatter(this->key1()) << std::endl;
|
||||||
}
|
|
||||||
return zero(2);
|
return zero(2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** return the measured */
|
/** return the measured */
|
||||||
inline const Point2 measured() const {
|
inline const Point2 measured() const {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue