Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ ndim
Method
ndim
cpp/src/arrow/c/dlpack.cc:300–303 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
298
const DLTensor& tensor() const { return ptr_->dl_tensor; }
299
300
int64_t ndim() const {
301
DCHECK_GE(tensor().ndim, 0);
302
return tensor().ndim;
303
}
304
305
template <typename T>
306
T* data_as() {
Callers
15
garrow_tensor_get_n_dimensions
Function · 0.80
garrow_fixed_shape_tensor_data_type_get_property
Function · 0.80
TensorToNdarray
Function · 0.80
StridedTensorCountNonZero
Function · 0.80
StridedIntegerTensorContentEquals
Function · 0.80
StridedFloatTensorContentEquals
Function · 0.80
DetectSparseCOOIndexCanonicality
Function · 0.80
TEST_F
Function · 0.80
ConvertRowMajorTensor
Function · 0.80
ConvertColumnMajorTensor
Function · 0.80
ConvertStridedTensor
Function · 0.80
Convert
Method · 0.80
Calls
no outgoing calls
Tested by
3
TEST_F
Function · 0.64
CheckDLTensor
Function · 0.64
TEST_F
Function · 0.64