MCPcopy Create free account
hub / github.com/pybind/pybind11 / array_t

Function array_t

include/pybind11/numpy.h:1381–1386  ·  view source on GitHub ↗

Delegating constructor needed when both moving and accessing in the same constructor

Source from the content-addressed store, hash-verified

1379 struct private_ctor {};
1380 // Delegating constructor needed when both moving and accessing in the same constructor
1381 array_t(private_ctor,
1382 ShapeContainer &&shape,
1383 StridesContainer &&strides,
1384 const T *ptr,
1385 handle base)
1386 : array(std::move(shape), std::move(strides), ptr, base) {}
1387
1388public:
1389 static_assert(!detail::array_info<T>::is_array, "Array types cannot be used with array_t");

Callers

nothing calls this directly

Calls 6

moveFunction · 0.85
f_stridesFunction · 0.85
itemsizeFunction · 0.85
c_stridesFunction · 0.85
ptrMethod · 0.80
handleFunction · 0.70

Tested by

no test coverage detected