| 106 | } |
| 107 | |
| 108 | string pair__repr__ (const std::pair<unsigned long,double>& p) |
| 109 | { |
| 110 | std::ostringstream sout; |
| 111 | sout << "dlib.pair(" << p.first << ", " << p.second << ")"; |
| 112 | return sout.str(); |
| 113 | } |
| 114 | |
| 115 | string sparse_vector__str__ (const std::vector<std::pair<unsigned long,double> >& v) |
| 116 | { |