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

Function array__repr__

tools/python/src/basic.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46string array__repr__ (const std::vector<double>& v)
47{
48 std::ostringstream sout;
49 sout << "dlib.array([";
50 for (unsigned long i = 0; i < v.size(); ++i)
51 {
52 sout << v[i];
53 if (i+1 < v.size())
54 sout << ", ";
55 }
56 sout << "])";
57 return sout.str();
58}
59
60string range__str__ (const std::pair<unsigned long,unsigned long>& p)
61{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected