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

Function test_complex

dlib/test/matrix4.cpp:840–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 }
839
840 void test_complex()
841 {
842 matrix<complex<double> > a, b;
843
844 a = complex_matrix(linspace(1,7,7), linspace(2,8,7));
845 b = complex_matrix(linspace(4,10,7), linspace(2,8,7));
846
847 DLIB_TEST(mean(a) == complex<double>(4, 5));
848 }
849
850 void test_setsubs()
851 {

Callers 1

perform_testMethod · 0.85

Calls 3

complex_matrixFunction · 0.85
linspaceFunction · 0.85
meanFunction · 0.85

Tested by

no test coverage detected