MCPcopy Create free account
hub / github.com/davisking/dlib / sparse_vector__repr__

Function sparse_vector__repr__

tools/python/src/basic.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127string sparse_vector__repr__ (const std::vector<std::pair<unsigned long,double> >& v)
128{
129 std::ostringstream sout;
130 sout << "< dlib.sparse_vector containing: \n" << sparse_vector__str__(v) << " >";
131 return sout.str();
132}
133
134unsigned long range_len(const std::pair<unsigned long, unsigned long>& r)
135{

Callers

nothing calls this directly

Calls 2

sparse_vector__str__Function · 0.85
strMethod · 0.45

Tested by

no test coverage detected