again: overlooked Dim -> dimension because this factor has no unit test!

release/4.3a0
cbeall3 2015-01-28 16:48:12 -05:00
parent b1cea2bee7
commit 5afc3c4cea
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace gtsam {
/** Single Element Constructor: acts on a single parameter specified by idx */ /** Single Element Constructor: acts on a single parameter specified by idx */
PartialPriorFactor(Key key, size_t idx, double prior, const SharedNoiseModel& model) : PartialPriorFactor(Key key, size_t idx, double prior, const SharedNoiseModel& model) :
Base(model, key), prior_((Vector(1) << prior).finished()), mask_(1, idx), H_(zeros(1, T::Dim())) { Base(model, key), prior_((Vector(1) << prior).finished()), mask_(1, idx), H_(zeros(1, T::dimension)) {
assert(model->dim() == 1); assert(model->dim() == 1);
this->fillH(); this->fillH();
} }