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

Function applyShifts

src/backend/common/jit/Node.hpp:352–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350
351template<typename T>
352inline void applyShifts(std::array<int, 4> &shifts, nonstd::span<T> dims) {
353 std::array<T, 4> out;
354 for (size_t i = 0; i < shifts.size(); i++) { out[i] = dims[shifts[i]]; }
355 std::copy(begin(out), std::end(out), std::begin(dims));
356}
357
358template<typename ArrayT>
359inline std::array<int, 4> compressArray(ArrayT dims) {

Callers

nothing calls this directly

Calls 3

beginFunction · 0.85
endFunction · 0.85
copyFunction · 0.50

Tested by

no test coverage detected