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

Method ndim

Source/Falcor/Utils/Scripting/ndarray.h:425–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424 dlpack::dtype dtype() const { return m_dltensor.dtype; }
425 size_t ndim() const { return m_dltensor.ndim; }
426 size_t shape(size_t i) const { return m_dltensor.shape[i]; }
427 int64_t stride(size_t i) const { return m_dltensor.strides[i]; }
428 bool is_valid() const { return m_handle != nullptr; }

Callers 4

verifyDataMethod · 0.80
FALCOR_SCRIPT_BINDINGFunction · 0.80
getNdarraySizeFunction · 0.80
isNdarrayContiguousFunction · 0.80

Calls

no outgoing calls

Tested by 1

verifyDataMethod · 0.64