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

Function test_eigenvalue

dlib/test/matrix_eig.cpp:138–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137 template <typename matrix_type>
138 void test_eigenvalue ( const matrix_type& m )
139 {
140 typedef typename matrix_type::type type;
141 typedef typename matrix_type::mem_manager_type MM;
142 matrix<type,matrix_type::NR, matrix_type::NC, MM, row_major_layout> mr(m);
143 matrix<type,matrix_type::NR, matrix_type::NC, MM, column_major_layout> mc(m);
144
145 {
146 eigenvalue_decomposition<matrix_type> test(mr);
147 test_eigenvalue_impl(mr, test);
148
149 eigenvalue_decomposition<matrix_type> test_symm(make_symmetric(mr));
150 test_eigenvalue_impl(make_symmetric(mr), test_symm);
151 }
152
153 {
154 eigenvalue_decomposition<matrix_type> test(mc);
155 test_eigenvalue_impl(mc, test);
156
157 eigenvalue_decomposition<matrix_type> test_symm(make_symmetric(mc));
158 test_eigenvalue_impl(make_symmetric(mc), test_symm);
159 }
160 }
161
162// ----------------------------------------------------------------------------------------
163

Callers 2

matrix_test_doubleFunction · 0.85
matrix_test_floatFunction · 0.85

Calls 2

test_eigenvalue_implFunction · 0.85
make_symmetricFunction · 0.85

Tested by

no test coverage detected