mirror of https://github.com/davisking/dlib.git
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:
parent
578ba83d21
commit
84db62693e
|
@ -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()"
|
||||
|
|
Loading…
Reference in New Issue