Skip to content
Snippets Groups Projects
Commit cef75f2e authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent e1f8b0a9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment