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

Method getVolume

include/openpose/core/array.hpp:272–275  ·  view source on GitHub ↗

* Return the total number of elements allocated, equivalent to multiply all the components from getSize(). * E.g., for a Array of size = {2,5,3}, the volume or total number of elements is: 2x5x3 = 30. * @return The total volume of the allocated data. If no memory is allocated, it returns 0. */

Source from the content-addressed store, hash-verified

270 * @return The total volume of the allocated data. If no memory is allocated, it returns 0.
271 */
272 inline size_t getVolume() const
273 {
274 return mVolume;
275 }
276
277 /**
278 * Similar to getVolume(), but in this case it just returns the volume between the desired dimensions.

Callers 1

ArrayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected