Commit cef75f2e authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent e1f8b0a9
Pipeline #18165 passed with stage
in 5 minutes and 35 seconds
......@@ -36,7 +36,7 @@ class Random(object):
if issubclass(dtype, (complex, np.complexfloating)):
x = np.empty(shape, dtype=dtype)
x.real = np.random.normal(mean, std*np.sqrt(0.5), shape)
x.imag = np.random.normal(mean, std*np.sqrt(0.5), shape)
x.imag = np.random.normal(0., std*np.sqrt(0.5), shape)
else:
x = np.random.normal(mean, std, shape)
x = x.astype(dtype, copy=False)
......
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