MCPcopy Create free account
hub / github.com/davisking/dlib / rm_zeros

Function rm_zeros

dlib/test/cca.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54 template <typename EXP>
55 matrix<typename EXP::type> rm_zeros (
56 const matrix_exp<EXP>& m
57 )
58 {
59 // Do this to avoid trying to correlate super small numbers that are really just
60 // zero. Doing this avoids some potential false alarms in the unit tests below.
61 return round_zeros(m, max(abs(m))*1e-14);
62 }
63
64// ----------------------------------------------------------------------------------------
65

Callers 3

test_cca3Function · 0.85
test_cca2Function · 0.85
test_cca1Function · 0.85

Calls 3

round_zerosFunction · 0.85
absFunction · 0.85
maxFunction · 0.50

Tested by

no test coverage detected