MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / printSize

Method printSize

src/openpose/core/array.cpp:447–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446 template<typename T>
447 std::string Array<T>::printSize() const
448 {
449 try
450 {
451 auto counter = 0u;
452 std::string sizeString = "[ ";
453 for (const auto& i : mSize)
454 {
455 sizeString += std::to_string(i);
456 if (++counter < mSize.size())
457 sizeString += " x ";
458 }
459 sizeString += " ]";
460 return sizeString;
461 }
462 catch (const std::exception& e)
463 {
464 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
465 return "";
466 }
467 }
468
469 template<typename T>
470 size_t Array<T>::getVolume(const int indexA, const int indexB) const

Callers

nothing calls this directly

Calls 3

whatMethod · 0.80
errorFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected