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

Method slice

src/api/cpp/array.cpp:448–450  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-const-return-type)

Source from the content-addressed store, hash-verified

446
447// NOLINTNEXTLINE(readability-const-return-type)
448const array::array_proxy array::slice(int index) const {
449 return this->operator()(span, span, index, span);
450}
451
452array::array_proxy array::slice(int index) {
453 return const_cast<const array *>(this)->slice(index);

Callers 2

TYPED_TESTFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 1

operator()Method · 0.95

Tested by

no test coverage detected