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

Function IsTensorStridesContiguous

cpp/src/arrow/tensor.cc:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226namespace internal {
227
228bool IsTensorStridesContiguous(const std::shared_ptr<DataType>& type,
229 const std::vector<int64_t>& shape,
230 const std::vector<int64_t>& strides) {
231 return IsTensorStridesRowMajor(type, shape, strides) ||
232 IsTensorStridesColumnMajor(type, shape, strides);
233}
234
235Status ValidateTensorParameters(const std::shared_ptr<DataType>& type,
236 const std::shared_ptr<Buffer>& data,

Callers 2

is_contiguousMethod · 0.85

Calls 2

IsTensorStridesRowMajorFunction · 0.85

Tested by

no test coverage detected