Fixed small formatting glitches

release/4.3a0
Frank Dellaert 2012-05-21 05:17:35 +00:00
parent 7a28e6d5cb
commit 861d1d7dbd
1 changed files with 8 additions and 8 deletions

View File

@ -226,7 +226,7 @@ Diagonal::shared_ptr Diagonal::Sigmas(const Vector& sigmas, bool smart) {
/* ************************************************************************* */ /* ************************************************************************* */
void Diagonal::print(const string& name) const { void Diagonal::print(const string& name) const {
gtsam::print(sigmas_, name + ": diagonal sigmas"); gtsam::print(sigmas_, name + "diagonal sigmas");
} }
/* ************************************************************************* */ /* ************************************************************************* */
@ -290,8 +290,8 @@ Constrained::shared_ptr Constrained::MixedSigmas(const Vector& mu, const Vector&
/* ************************************************************************* */ /* ************************************************************************* */
void Constrained::print(const std::string& name) const { void Constrained::print(const std::string& name) const {
gtsam::print(sigmas_, name + ": constrained sigmas"); gtsam::print(sigmas_, name + "constrained sigmas");
gtsam::print(mu_, name + ": constrained mu"); gtsam::print(mu_, name + "constrained mu");
} }
/* ************************************************************************* */ /* ************************************************************************* */
@ -436,7 +436,7 @@ Isotropic::shared_ptr Isotropic::Variance(size_t dim, double variance, bool smar
/* ************************************************************************* */ /* ************************************************************************* */
void Isotropic::print(const string& name) const { void Isotropic::print(const string& name) const {
cout << name << ": isotropic sigma " << " " << sigma_ << endl; cout << name << "isotropic sigma " << " " << sigma_ << endl;
} }
/* ************************************************************************* */ /* ************************************************************************* */
@ -480,7 +480,7 @@ Vector Isotropic::sample() const {
// Unit // Unit
/* ************************************************************************* */ /* ************************************************************************* */
void Unit::print(const std::string& name) const { void Unit::print(const std::string& name) const {
cout << name << ": unit (" << dim_ << ") " << endl; cout << name << "unit (" << dim_ << ") " << endl;
} }
/* ************************************************************************* */ /* ************************************************************************* */
@ -583,7 +583,7 @@ void Base::reweight(Matrix &A1, Matrix &A2, Matrix &A3, Vector &error) const {
/* ************************************************************************* */ /* ************************************************************************* */
void Null::print(const std::string &s="") const void Null::print(const std::string &s="") const
{ cout << s << ": null ()" << endl; } { cout << s << "null ()" << endl; }
Null::shared_ptr Null::Create() Null::shared_ptr Null::Create()
{ return shared_ptr(new Null()); } { return shared_ptr(new Null()); }
@ -604,7 +604,7 @@ double Fair::weight(const double &error) const
{ return 1.0 / (1.0 + fabs(error)/c_); } { return 1.0 / (1.0 + fabs(error)/c_); }
void Fair::print(const std::string &s="") const void Fair::print(const std::string &s="") const
{ cout << s << ": fair (" << c_ << ")" << endl; } { cout << s << "fair (" << c_ << ")" << endl; }
bool Fair::equals(const Base &expected, const double tol) const { bool Fair::equals(const Base &expected, const double tol) const {
const Fair* p = dynamic_cast<const Fair*> (&expected); const Fair* p = dynamic_cast<const Fair*> (&expected);
@ -632,7 +632,7 @@ double Huber::weight(const double &error) const {
} }
void Huber::print(const std::string &s="") const { void Huber::print(const std::string &s="") const {
cout << s << ": huber (" << k_ << ")" << endl; cout << s << "huber (" << k_ << ")" << endl;
} }
bool Huber::equals(const Base &expected, const double tol) const { bool Huber::equals(const Base &expected, const double tol) const {