Conversion from Hessian can have NULL node model

release/4.3a0
dellaert 2014-02-16 12:15:52 -05:00
parent 17e2221395
commit f8024bd6dd
2 changed files with 2 additions and 3 deletions

View File

@ -131,7 +131,7 @@ namespace gtsam {
Matrix::Zero(maxrank, Ab_.matrix().cols());
// FIXME: replace with triangular system
Ab_.rowEnd() = maxrank;
model_ = noiseModel::Unit::Create(maxrank);
model_ = SharedDiagonal(); // should be same as Unit::Create(maxrank);
}
/* ************************************************************************* */

View File

@ -138,8 +138,7 @@ TEST(JabobianFactor, Hessian_conversion) {
JacobianFactor expected(0, (Matrix(2,4) <<
1.2530, 2.1508, -0.8779, -1.8755,
0, 2.5858, 0.4789, -2.3943).finished(),
(Vector(2) << -6.2929, -5.7941).finished(),
noiseModel::Unit::Create(2));
(Vector(2) << -6.2929, -5.7941).finished());
JacobianFactor actual(hessian);