MCPcopy Create free account
hub / github.com/apache/arrow / shape

Method shape

cpp/src/arrow/c/dlpack.cc:310–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 }
309
310 std::span<const int64_t> shape() const {
311 return {tensor().shape, static_cast<std::size_t>(ndim())};
312 }
313
314 /// Strides or empty span for old DLPack row-major convention.
315 std::span<const int64_t> strides() const {

Callers 15

ComputeNumElementsMethod · 0.95
test_shapeMethod · 0.45
test_shapeMethod · 0.45
garrow_tensor_get_shapeFunction · 0.45
TensorToNdarrayFunction · 0.45
TESTFunction · 0.45
TensorEqualsFunction · 0.45
CompareMethod · 0.45

Calls 1

ndimFunction · 0.50

Tested by 15

test_shapeMethod · 0.36
test_shapeMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
CheckTableToTensorFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TYPED_TEST_PFunction · 0.36
TEST_FFunction · 0.36
CheckTensorFunction · 0.36
CheckTensorRowMajorFunction · 0.36