Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ is_contiguous
Method
is_contiguous
cpp/src/arrow/tensor.cc:465–467 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
463
}
464
465
bool Tensor::is_contiguous() const {
466
return internal::IsTensorStridesContiguous(type_, shape_, strides_);
467
}
468
469
bool Tensor::is_row_major() const {
470
return IsTensorStridesRowMajor(type_, shape_, strides_);
Callers
10
garrow_tensor_is_contiguous
Function · 0.80
TEST
Function · 0.80
TYPED_TEST_P
Function · 0.80
TensorCountNonZero
Function · 0.80
CheckTensor
Function · 0.80
CheckTensorRowMajor
Function · 0.80
WriteTensor
Function · 0.80
GetTensorMessage
Function · 0.80
ASSERT_OK_AND_ASSIGN
Function · 0.80
TEST_F
Function · 0.80
Calls
1
IsTensorStridesContiguous
Function · 0.85
Tested by
6
TEST
Function · 0.64
TYPED_TEST_P
Function · 0.64
CheckTensor
Function · 0.64
CheckTensorRowMajor
Function · 0.64
ASSERT_OK_AND_ASSIGN
Function · 0.64
TEST_F
Function · 0.64