Commit 6309e821 authored by Davis King's avatar Davis King

Fixed some errors in the requirements for calling the new rowm() and colm()

functions.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402844
parent d8b7db20
...@@ -235,7 +235,7 @@ namespace dlib ...@@ -235,7 +235,7 @@ namespace dlib
) )
{ {
DLIB_ASSERT(row >= 0 && row < m.nr() && DLIB_ASSERT(row >= 0 && row < m.nr() &&
length >= 0 && length < m.nc(), length >= 0 && length <= m.nc(),
"\tconst matrix_exp rowm(const matrix_exp& m, row, length)" "\tconst matrix_exp rowm(const matrix_exp& m, row, length)"
<< "\n\tYou have specified invalid sub matrix dimensions" << "\n\tYou have specified invalid sub matrix dimensions"
<< "\n\tm.nr(): " << m.nr() << "\n\tm.nr(): " << m.nr()
...@@ -375,7 +375,7 @@ namespace dlib ...@@ -375,7 +375,7 @@ namespace dlib
) )
{ {
DLIB_ASSERT(col >= 0 && col < m.nc() && DLIB_ASSERT(col >= 0 && col < m.nc() &&
length >= 0 && length < m.nr(), length >= 0 && length <= m.nr(),
"\tconst matrix_exp colm(const matrix_exp& m, col, length)" "\tconst matrix_exp colm(const matrix_exp& m, col, length)"
<< "\n\tYou have specified invalid sub matrix dimensions" << "\n\tYou have specified invalid sub matrix dimensions"
<< "\n\tm.nr(): " << m.nr() << "\n\tm.nr(): " << m.nr()
......
...@@ -160,7 +160,7 @@ namespace dlib ...@@ -160,7 +160,7 @@ namespace dlib
/*! /*!
requires requires
- 0 <= row < m.nr() - 0 <= row < m.nr()
- 0 <= length < m.nc() - 0 <= length <= m.nc()
ensures ensures
- returns a matrix R such that: - returns a matrix R such that:
- R.nr() == 1 - R.nr() == 1
...@@ -198,7 +198,7 @@ namespace dlib ...@@ -198,7 +198,7 @@ namespace dlib
); );
/*! /*!
requires requires
- 0 <= col < m.nr() - 0 <= col < m.nc()
ensures ensures
- returns a matrix R such that: - returns a matrix R such that:
- R.nr() == m.nr() - R.nr() == m.nr()
...@@ -216,8 +216,8 @@ namespace dlib ...@@ -216,8 +216,8 @@ namespace dlib
); );
/*! /*!
requires requires
- 0 <= col < m.nr() - 0 <= col < m.nc()
- 0 <= length < m.nc() - 0 <= length <= m.nr()
ensures ensures
- returns a matrix R such that: - returns a matrix R such that:
- R.nr() == length - R.nr() == length
......
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