mirror of https://github.com/davisking/dlib.git
Added missing assert
This commit is contained in:
parent
04089ee638
commit
d32f169fa9
|
@ -2097,6 +2097,13 @@ namespace dlib
|
||||||
unsigned long seed = 0
|
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;
|
typedef op_gaussian_randm op;
|
||||||
return matrix_op<op>(op(nr,nc,seed));
|
return matrix_op<op>(op(nr,nc,seed));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue