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

Function gfor

test/diagonal.cpp:150–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 array B = constant(0, 100, 1, 3);
149
150 gfor(seq ii, 3) { B(span, span, ii) = diag(A(span, span, ii)); }
151
152 for (int ii = 0; ii < 3; ii++) {
153 array c_ii = diag(A(span, span, ii));

Callers

nothing calls this directly

Calls 1

diagFunction · 0.85

Tested by

no test coverage detected