Skip to content

Commit 03bcd37

Browse files
authored
Merge pull request #131 from PyFE/heston-mc
minor changes
2 parents 31f44cf + d5b8f56 commit 03bcd37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DS_Store
2-
2+
.tmp.driveupload/
33

44
# Created by https://www.toptal.com/developers/gitignore/api/pycharm,python
55
# Edit at https://www.toptal.com/developers/gitignore?templates=pycharm,python

pyfeng/ousv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def cond_states_step(self, vol_0, dt, zn=None):
458458
if self.antithetic:
459459
n_path_half = int(n_path//2)
460460
z_sin = self.rng_spawn[2].standard_normal(size=(n_path_half, n_sin)).T
461-
z_sin = np.stack([z_sin, -z_sin], axis=2).reshape((n_sin, n_path))
461+
z_sin = np.stack([z_sin, -z_sin], axis=-1).reshape((n_sin, n_path))
462462

463463
z_gpqr = self.rng_spawn[1].standard_normal(size=(n_path_half, 4)).T
464464
z_gpqr = np.stack([z_gpqr, -z_gpqr], axis=-1).reshape((4, n_path))

0 commit comments

Comments
 (0)