Commit 637011e5 authored by Davis King's avatar Davis King

Added missing requires clause.

parent dd16139a
...@@ -581,6 +581,7 @@ namespace dlib ...@@ -581,6 +581,7 @@ namespace dlib
for (auto& Q : Q_blocks) for (auto& Q : Q_blocks)
{ {
DLIB_CASSERT(Q.nr() == Q.nc(), "All the matrices in Q_blocks have the same dimensions."); 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."); 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 #ifdef ENABLE_ASSERTS
......
...@@ -183,8 +183,8 @@ namespace dlib ...@@ -183,8 +183,8 @@ namespace dlib
requires requires
- Q_blocks.size() > 0 - Q_blocks.size() > 0
- Q_blocks.size() == bs.size() == alphas.size() == lowers.size() == uppers.size() - 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 - All the matrices in Q_blocks have the same dimensions. Moreover, they are
matrices. non-empty square matrices.
- All the matrices in bs, Q_offdiag, alphas, lowers, and uppers have the same - All the matrices in bs, Q_offdiag, alphas, lowers, and uppers have the same
dimensions. Moreover, they are all column vectors. dimensions. Moreover, they are all column vectors.
- Q_blocks[0].nr() == alphas[0].size() - Q_blocks[0].nr() == alphas[0].size()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment