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

Function IsTensorStridesContiguous

cpp/src/arrow/tensor.cc:200–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198namespace internal {
199
200bool IsTensorStridesContiguous(const std::shared_ptr<DataType>& type,
201 const std::vector<int64_t>& shape,
202 const std::vector<int64_t>& strides) {
203 return IsTensorStridesRowMajor(type, shape, strides) ||
204 IsTensorStridesColumnMajor(type, shape, strides);
205}
206
207Status ValidateTensorParameters(const std::shared_ptr<DataType>& type,
208 const std::shared_ptr<Buffer>& data,

Callers 2

is_contiguousMethod · 0.85

Calls 2

IsTensorStridesRowMajorFunction · 0.85

Tested by

no test coverage detected