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

Function tileRepeations

test/binary.cpp:668–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668af::dim4 tileRepeations(dim4 in, dim4 other) {
669 af::dim4 out;
670 for (int i = 0; i < AF_MAX_DIMS; i++) {
671 out[i] = std::max(dim_t(1), other[i] / in[i]);
672 }
673 return out;
674}
675
676TEST_P(Broadcast, Addition) {
677 auto params = GetParam();

Callers 1

TEST_PFunction · 0.85

Calls 1

maxFunction · 0.70

Tested by

no test coverage detected