Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
9f70a4d3
Commit
9f70a4d3
authored
Jan 05, 2014
by
Davis King
Browse files
Made test a little more robust
parent
4d5249df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/test/optimization.cpp
dlib/test/optimization.cpp
+2
-2
No files found.
dlib/test/optimization.cpp
View file @
9f70a4d3
...
@@ -998,7 +998,7 @@ namespace
...
@@ -998,7 +998,7 @@ namespace
upper
upper
);
);
DLIB_TEST
(
std
::
abs
(
val
-
neg_rosen
(
x
))
<
1e-1
4
);
DLIB_TEST
_MSG
(
std
::
abs
(
val
-
neg_rosen
(
x
))
<
1e-1
1
,
std
::
abs
(
val
-
neg_rosen
(
x
))
);
dlog
<<
LINFO
<<
"neg_rosen solution:
\n
"
<<
x
;
dlog
<<
LINFO
<<
"neg_rosen solution:
\n
"
<<
x
;
dlog
<<
LINFO
<<
"neg_rosen gradient: "
<<
trans
(
der_neg_rosen
(
x
));
dlog
<<
LINFO
<<
"neg_rosen gradient: "
<<
trans
(
der_neg_rosen
(
x
));
...
@@ -1077,7 +1077,7 @@ namespace
...
@@ -1077,7 +1077,7 @@ namespace
}
}
DLIB_TEST
(
std
::
abs
(
val
-
rosen
(
x
))
<
1e-1
4
);
DLIB_TEST
_MSG
(
std
::
abs
(
val
-
rosen
(
x
))
<
1e-1
1
,
std
::
abs
(
val
-
rosen
(
x
))
);
dlog
<<
LINFO
<<
"rosen solution:
\n
"
<<
x
;
dlog
<<
LINFO
<<
"rosen solution:
\n
"
<<
x
;
dlog
<<
LINFO
<<
"rosen gradient: "
<<
trans
(
der_rosen
(
x
));
dlog
<<
LINFO
<<
"rosen gradient: "
<<
trans
(
der_rosen
(
x
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment