MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / Create

Method Create

python/mod_cvcuda/include/nvcv/python/Array.hpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{
41public:
42 static Array Create(int64_t length, nvcv::DataType dtype)
43 {
44 PyObject *oarray = capi().Array_Create(length, dtype);
45 CheckCAPIError();
46 NVCV_ASSERT(oarray == nullptr);
47 py::object pyarray = py::reinterpret_steal<py::object>(oarray);
48 return Array(pyarray);
49 }
50
51 static Array Create(const Shape &shape, nvcv::DataType dtype)
52 {

Callers

nothing calls this directly

Calls 3

CheckCAPIErrorFunction · 0.85
LengthIf1DFunction · 0.85
ArrayClass · 0.70

Tested by

no test coverage detected