We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a096ee1 commit c6c34a1Copy full SHA for c6c34a1
src/geostat/gaussian_sim.py
@@ -111,15 +111,15 @@ def fast_gaussian(dimension, sdev, corr, num_samples=1):
111
t3 = np.exp(-t3 ** 2) + 1e-10 * np.eye(p)
112
cholt3 = np.linalg.cholesky(t3)
113
114
- z = np.random.randn(dim, num_samples)
+ x = np.random.randn(dim, num_samples)
115
116
# Memory-efficient multiplication without explicit large Kronecker product
117
if p is None:
118
- x = z.reshape(m, n, num_samples, order='F')
+ x = x.reshape(m, n, num_samples, order='F')
119
x = np.tensordot(cholt1, x, axes=([1], [0]))
120
x = np.tensordot(cholt2, x, axes=([1], [1]))
121
else:
122
- x = z.reshape(m, n, p, num_samples, order='F')
+ x = x.reshape(m, n, p, num_samples, order='F')
123
if n <= p:
124
125
0 commit comments