| 30 | |
| 31 | template <typename type> |
| 32 | const matrix<type> randm(long r, long c) |
| 33 | { |
| 34 | matrix<type> m(r,c); |
| 35 | for (long row = 0; row < m.nr(); ++row) |
| 36 | { |
| 37 | for (long col = 0; col < m.nc(); ++col) |
| 38 | { |
| 39 | m(row,col) = static_cast<type>(rnd.get_random_double()); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | return m; |
| 44 | } |
| 45 | |
| 46 | template <typename type, long NR, long NC> |
| 47 | const matrix<type,NR,NC> randm() |
no test coverage detected