Removed the ASSERT that the B matrix be symmetric since compiler optimizations

can sometimes cause B to be very slightly non-symmetric.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404083
This commit is contained in:
Davis King 2010-12-31 22:12:54 +00:00
parent 578ba83d21
commit 84db62693e
1 changed files with 1 additions and 3 deletions

View File

@ -32,15 +32,13 @@ namespace dlib
*/
// make sure requires clause is not broken
DLIB_ASSERT(B.nr() == B.nc() && is_col_vector(g) && g.size() == B.nr() && equal(B,trans(B)),
DLIB_ASSERT(B.nr() == B.nc() && is_col_vector(g) && g.size() == B.nr(),
"\t unsigned long solve_trust_region_subproblem()"
<< "\n\t invalid arguments were given to this function"
<< "\n\t B.nr(): " << B.nr()
<< "\n\t B.nc(): " << B.nc()
<< "\n\t is_col_vector(g): " << is_col_vector(g)
<< "\n\t g.size(): " << g.size()
<< "\n\t equal(B,trans(B)): " << equal(B,trans(B))
<< "\n\t max(abs(B-trans(B))): " << max(abs(B-trans(B)))
);
DLIB_ASSERT(radius > 0 && eps > 0 && max_iter > 0,
"\t unsigned long solve_trust_region_subproblem()"