Commit d32f169f authored by Davis King's avatar Davis King

Added missing assert

parent 04089ee6
......@@ -2097,6 +2097,13 @@ namespace dlib
unsigned long seed = 0
)
{
DLIB_ASSERT(nr >= 0 && nc >= 0,
"\tmatrix_exp gaussian_randm(nr, nc, seed)"
<< "\n\tInvalid inputs to this function"
<< "\n\tnr: " << nr
<< "\n\tnc: " << nc
);
typedef op_gaussian_randm op;
return matrix_op<op>(op(nr,nc,seed));
}
......
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