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

Function array__str__

tools/python/src/basic.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34string array__str__ (const std::vector<double>& v)
35{
36 std::ostringstream sout;
37 for (unsigned long i = 0; i < v.size(); ++i)
38 {
39 sout << v[i];
40 if (i+1 < v.size())
41 sout << "\n";
42 }
43 return sout.str();
44}
45
46string array__repr__ (const std::vector<double>& v)
47{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected