Fixed printing in matlab

release/4.3a0
Frank Dellaert 2011-10-22 19:50:32 +00:00
parent 861071cc3b
commit 661e8bd962
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace gtsam {
template<class FACTOR>
void FactorGraph<FACTOR>::print(const string& s) const {
cout << s << endl;
printf("size: %d\n", (int) size());
cout << "size: " << size() << endl;
for (size_t i = 0; i < factors_.size(); i++) {
stringstream ss;
ss << "factor " << i;