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
637011e5
Commit
637011e5
authored
Mar 22, 2017
by
Davis King
Browse files
Added missing requires clause.
parent
dd16139a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dlib/optimization/optimization_solve_qp_using_smo.h
dlib/optimization/optimization_solve_qp_using_smo.h
+1
-0
dlib/optimization/optimization_solve_qp_using_smo_abstract.h
dlib/optimization/optimization_solve_qp_using_smo_abstract.h
+2
-2
No files found.
dlib/optimization/optimization_solve_qp_using_smo.h
View file @
637011e5
...
...
@@ -581,6 +581,7 @@ namespace dlib
for
(
auto
&
Q
:
Q_blocks
)
{
DLIB_CASSERT
(
Q
.
nr
()
==
Q
.
nc
(),
"All the matrices in Q_blocks have the same dimensions."
);
DLIB_CASSERT
(
Q
.
size
()
>
0
,
"All the matrices in Q_blocks must be non-empty and have the same dimensions."
);
DLIB_CASSERT
(
Q
.
nr
()
==
Q_blocks
[
0
].
nr
()
&&
Q
.
nc
()
==
Q_blocks
[
0
].
nc
(),
"All the matrices in Q_blocks have the same dimensions."
);
}
#ifdef ENABLE_ASSERTS
...
...
dlib/optimization/optimization_solve_qp_using_smo_abstract.h
View file @
637011e5
...
...
@@ -183,8 +183,8 @@ namespace dlib
requires
- Q_blocks.size() > 0
- Q_blocks.size() == bs.size() == alphas.size() == lowers.size() == uppers.size()
- All the matrices in Q_blocks have the same dimensions. Moreover, they are
square
matrices.
- All the matrices in Q_blocks have the same dimensions. Moreover, they are
non-empty square
matrices.
- All the matrices in bs, Q_offdiag, alphas, lowers, and uppers have the same
dimensions. Moreover, they are all column vectors.
- Q_blocks[0].nr() == alphas[0].size()
...
...
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