MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getNdarraySize

Function getNdarraySize

Source/Falcor/Core/API/PythonHelpers.h:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template<typename... Args>
46size_t getNdarraySize(const pybind11::ndarray<Args...>& array)
47{
48 size_t size = 1;
49 for (size_t i = 0; i < array.ndim(); i++)
50 size *= array.shape(i);
51 return size;
52}
53
54template<typename... Args>
55size_t getNdarrayByteSize(const pybind11::ndarray<Args...>& array)

Callers 1

getNdarrayByteSizeFunction · 0.85

Calls 2

ndimMethod · 0.80
shapeMethod · 0.80

Tested by

no test coverage detected