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
854801d4
Commit
854801d4
authored
Apr 17, 2018
by
Davis King
Browse files
Improved assert error message.
parent
99885356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/optimization/optimization_line_search.h
dlib/optimization/optimization_line_search.h
+4
-1
No files found.
dlib/optimization/optimization_line_search.h
View file @
854801d4
...
...
@@ -195,7 +195,10 @@ namespace dlib
double
f_x2
)
{
DLIB_ASSERT
(
0
<
x1
&&
x1
<
x2
,
"Invalid inputs were given to this function"
);
DLIB_ASSERT
(
0
<
x1
&&
x1
<
x2
,
"Invalid inputs were given to this function.
\n
"
<<
"x1: "
<<
x1
<<
" x2: "
<<
x2
);
// The contents of this function follow the equations described on page 58 of the
// book Numerical Optimization by Nocedal and Wright, second edition.
matrix
<
double
,
2
,
2
>
m
;
...
...
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