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
d32f169f
Commit
d32f169f
authored
Nov 24, 2012
by
Davis King
Browse files
Added missing assert
parent
04089ee6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dlib/matrix/matrix_utilities.h
dlib/matrix/matrix_utilities.h
+7
-0
No files found.
dlib/matrix/matrix_utilities.h
View file @
d32f169f
...
...
@@ -2097,6 +2097,13 @@ namespace dlib
unsigned
long
seed
=
0
)
{
DLIB_ASSERT
(
nr
>=
0
&&
nc
>=
0
,
"
\t
matrix_exp gaussian_randm(nr, nc, seed)"
<<
"
\n\t
Invalid inputs to this function"
<<
"
\n\t
nr: "
<<
nr
<<
"
\n\t
nc: "
<<
nc
);
typedef
op_gaussian_randm
op
;
return
matrix_op
<
op
>
(
op
(
nr
,
nc
,
seed
));
}
...
...
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