MCPcopy Create free account
hub / github.com/NVIDIA/MatX / TotalSize

Function TotalSize

include/matx/operators/base_operator.h:320–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 __MATX_INLINE__ __MATX_HOST__ __MATX_DEVICE__ index_t TotalSize() const {
321
322 index_t size = 1;
323 for(int i = 0 ; i < T::Rank(); i++) {
324 size *= static_cast<const T*>(this)->Size(i);
325 }
326 return size;
327 }
328
329
330 /* This must be in derived class. Copy paste line below to derived case if it is an lvalue

Callers 1

reshape.hFile · 0.70

Calls 2

RankFunction · 0.70
SizeMethod · 0.45

Tested by

no test coverage detected