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

Function minimalDim4

test/arrayfire_test.cpp:560–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560std::string minimalDim4(af::dim4 coords, af::dim4 dims) {
561 std::ostringstream os;
562 os << "(" << coords[0];
563 if (dims[1] > 1 || dims[2] > 1 || dims[3] > 1) { os << ", " << coords[1]; }
564 if (dims[2] > 1 || dims[3] > 1) { os << ", " << coords[2]; }
565 if (dims[3] > 1) { os << ", " << coords[3]; }
566 os << ")";
567
568 return os.str();
569}
570
571// Generates a random array. testWriteToOutputArray expects that it will
572// receive the same af_array that this generates after the af_* function is

Callers 1

elemWiseEqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected