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

Function CopyStridedNatural

python/pyarrow/src/arrow/python/numpy_to_arrow.cc:401–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399
400template <typename T>
401void CopyStridedNatural(T* input_data, int64_t length, int64_t stride, T* output_data) {
402 // Passing input_data as non-const is a concession to PyObject*
403 int64_t j = 0;
404 for (int64_t i = 0; i < length; ++i) {
405 output_data[i] = input_data[j];
406 j += stride;
407 }
408}
409
410class NumPyStridedConverter {
411 public:

Callers 1

VisitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected