Commit 7c69cf19 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

more fixes

parent 2bc45272
Pipeline #23628 passed with stage
in 4 minutes and 54 seconds
......@@ -32,6 +32,9 @@ class Random(object):
@staticmethod
def normal(dtype, shape, mean=0., std=1.):
if not (np.issubdtype(dtype, np.floating) or
np.issubdtype(dtype, np.complexfloating)):
raise TypeError("dtype must be float or complex")
if not np.isscalar(mean) or not np.isscalar(std):
raise TypeError("mean and std must be scalars")
if np.issubdtype(type(std), np.complexfloating):
......
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