We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6c34a1 commit 3f9f0c8Copy full SHA for 3f9f0c8
1 file changed
src/geostat/gaussian_sim.py
@@ -120,14 +120,9 @@ def fast_gaussian(dimension, sdev, corr, num_samples=1):
120
x = np.tensordot(cholt2, x, axes=([1], [1]))
121
else:
122
x = x.reshape(m, n, p, num_samples, order='F')
123
- if n <= p:
124
- x = np.tensordot(cholt1, x, axes=([1], [0]))
125
- x = np.tensordot(cholt2, x, axes=([1], [1]))
126
- x = np.tensordot(cholt3, x, axes=([1], [2]))
127
- else:
128
129
130
+ x = np.tensordot(cholt1, x, axes=([1], [0]))
+ x = np.tensordot(cholt2, x, axes=([1], [1]))
+ x = np.tensordot(cholt3, x, axes=([1], [2]))
131
132
# Reshape back to (dim, num_samples) (order='C' is used here to match the original function's output)
133
x = x.reshape((dim, num_samples), order='C')
0 commit comments