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

Function TEST

test/pinverse.cpp:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183TEST(Pinverse, Square) {
184 array in =
185 readTestInput<float>(string(TEST_DIR "/pinverse/pinverse10x10.test"));
186 array inpinv = pinverse(in);
187 array out = matmul(in, inpinv, in);
188 ASSERT_ARRAYS_NEAR(in, out, eps<float>());
189}
190
191TEST(Pinverse, Dim1GtDim0) {
192 array in =

Callers

nothing calls this directly

Calls 12

diagFunction · 0.85
constantFunction · 0.85
svdClass · 0.70
pinverseFunction · 0.50
matmulFunction · 0.50
joinFunction · 0.50
af_pinverseFunction · 0.50
af_matmulFunction · 0.50
af_release_arrayFunction · 0.50
dimsMethod · 0.45
elementsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected