Skip to content

Commit

Permalink
random.utilities: Cache guvectorize
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Dec 11, 2018
1 parent d869c88 commit 045168f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantecon/random/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def _probvec(r, out):
out[n] = 1 - r[n-1]

_probvec_parallel = guvectorize(
['(f8[:], f8[:])'], '(n), (k)', nopython=True, target='parallel'
['(f8[:], f8[:])'], '(n), (k)', nopython=True, target='parallel', cache=True,
)(_probvec)
_probvec_cpu = guvectorize(
['(f8[:], f8[:])'], '(n), (k)', nopython=True, target='cpu'
['(f8[:], f8[:])'], '(n), (k)', nopython=True, target='cpu', cache=True,
)(_probvec)


Expand Down

0 comments on commit 045168f

Please sign in to comment.