| 48 | |
| 49 | template<typename R> |
| 50 | matrix<R> rand_real(long nr, long nc) |
| 51 | { |
| 52 | matrix<R> m(nr,nc); |
| 53 | |
| 54 | for (long r = 0; r < m.nr(); ++r) |
| 55 | { |
| 56 | for (long c = 0; c < m.nc(); ++c) |
| 57 | { |
| 58 | m(r,c) = rnd.get_random_gaussian() * 10.0; |
| 59 | } |
| 60 | } |
| 61 | return m; |
| 62 | } |
| 63 | |
| 64 | // ---------------------------------------------------------------------------------------- |
| 65 |
nothing calls this directly
no test coverage detected