| 35 | |
| 36 | template <typename type> |
| 37 | const matrix<type> randmat(long r, long c) |
| 38 | { |
| 39 | matrix<type> m(r,c); |
| 40 | for (long row = 0; row < m.nr(); ++row) |
| 41 | { |
| 42 | for (long col = 0; col < m.nc(); ++col) |
| 43 | { |
| 44 | m(row,col) = static_cast<type>(rnd.get_random_double()); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | return m; |
| 49 | } |
| 50 | |
| 51 | template <typename type, long NR, long NC> |
| 52 | const matrix<type,NR,NC> randmat() |
nothing calls this directly
no test coverage detected