| 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 |