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

Function randm

dlib/test/matrix_eig.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

test_blasFunction · 0.70
matrix_testFunction · 0.70
test_matrix_IOFunction · 0.70
test_axpyFunction · 0.70
run_testFunction · 0.70
test_loss_dotFunction · 0.70
matrix_test1Function · 0.70
matrix_test2Function · 0.70
test_rlsFunction · 0.70
matrix_testFunction · 0.70

Calls 3

get_random_doubleMethod · 0.80
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected