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

Function matrix_test_double

dlib/test/matrix_chol.cpp:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124// ----------------------------------------------------------------------------------------
125
126 void matrix_test_double()
127 {
128
129 test_cholesky(uniform_matrix<double>(1,1,1) + 10*symm(randmat<double>(1,1)));
130 test_cholesky(uniform_matrix<double>(2,2,1) + 10*symm(randmat<double>(2,2)));
131 test_cholesky(uniform_matrix<double>(3,3,1) + 10*symm(randmat<double>(3,3)));
132 test_cholesky(uniform_matrix<double>(4,4,1) + 10*symm(randmat<double>(4,4)));
133 test_cholesky(uniform_matrix<double>(15,15,1) + 10*symm(randmat<double>(15,15)));
134 test_cholesky(uniform_matrix<double>(101,101,1) + 10*symm(randmat<double>(101,101)));
135
136 typedef matrix<double,0,0,default_memory_manager, column_major_layout> mat;
137 test_cholesky(mat(uniform_matrix<double>(101,101,1) + 10*symm(randmat<double>(101,101))));
138 }
139
140// ----------------------------------------------------------------------------------------
141

Callers 1

perform_testMethod · 0.70

Calls 3

test_choleskyFunction · 0.85
symmFunction · 0.70
matFunction · 0.50

Tested by

no test coverage detected