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

Function checkValues

test/index.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename T, typename OP>
36void checkValues(const af_seq &seq, const T *data, const T *indexed_data,
37 OP compair_op) {
38 for (int i = 0, j = seq.begin; compair_op(j, (int)seq.end);
39 j += seq.step, i++) {
40 ASSERT_DOUBLE_EQ(real(data[j]), real(indexed_data[i]))
41 << "Where i = " << i << " and j = " << j;
42 }
43}
44
45template<typename T>
46void DimCheck(const vector<af_seq> &seqs) {

Callers 1

DimCheckFunction · 0.85

Calls 1

realFunction · 0.70

Tested by

no test coverage detected