MCPcopy Create free account
hub / github.com/numpy/numpy / asString

Method asString

tools/swig/test/Array1.cxx:87–98  ·  view source on GitHub ↗

String output

Source from the content-addressed store, hash-verified

85
86// String output
87std::string Array1::asString() const
88{
89 std::stringstream result;
90 result << "[";
91 for (int i=0; i < _length; ++i)
92 {
93 result << " " << _buffer[i];
94 if (i < _length-1) result << ",";
95 }
96 result << " ]";
97 return result.str();
98}
99
100// Get view
101void Array1::view(long** data, int* length) const

Callers 4

testAsStringMethod · 0.45
testAsStringMethod · 0.45
testAsStringMethod · 0.45
testAsStringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected