Commit 6e6858bc authored by Davis King's avatar Davis King

Added a test for make_symmetric()

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403843
parent f0708368
......@@ -965,6 +965,18 @@ namespace
}
{
matrix<int> m(3,3);
m = 1, 2, 3,
4, 5, 6,
7, 8, 9;
DLIB_TEST(make_symmetric(m) == trans(make_symmetric(m)));
DLIB_TEST(lowerm(make_symmetric(m)) == lowerm(m));
DLIB_TEST(upperm(make_symmetric(m)) == trans(lowerm(m)));
}
{
matrix<int,3,4> a;
matrix<int> b(3,1), c(1,4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment