MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / slices

Method slices

src/api/cpp/array.cpp:477–480  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-const-return-type)

Source from the content-addressed store, hash-verified

475
476// NOLINTNEXTLINE(readability-const-return-type)
477const array::array_proxy array::slices(int first, int last) const {
478 seq idx(first, last, 1);
479 return this->operator()(span, span, idx, span);
480}
481
482array::array_proxy array::slices(int first, int last) {
483 return const_cast<const array *>(this)->slices(first, last);

Callers 2

TYPED_TESTFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 1

operator()Method · 0.95

Tested by

no test coverage detected