comma initialization

release/4.3a0
cbeall3 2014-12-07 12:38:36 -05:00
parent 8cc26c759d
commit bfd40014a2
1 changed files with 4 additions and 5 deletions

View File

@ -117,10 +117,9 @@ public:
} }
/// vectorized form (column-wise) /// vectorized form (column-wise)
Vector vector() const { Vector5 vector() const {
double r[] = { fx_, fy_, s_, u0_, v0_ }; Vector5 v;
Vector v(5); v << fx_, fy_, s_, u0_, v0_;
std::copy(r, r + 5, v.data());
return v; return v;
} }
@ -199,7 +198,7 @@ public:
} }
/// Unretraction for the calibration /// Unretraction for the calibration
Vector localCoordinates(const Cal3_S2& T2) const { Vector5 localCoordinates(const Cal3_S2& T2) const {
return T2.vector() - vector(); return T2.vector() - vector();
} }