Skip to content

Commit

Permalink
FIX: Update num_compositions
Browse files Browse the repository at this point in the history
  • Loading branch information
QBatista committed Dec 23, 2017
1 parent 296e595 commit 4d91490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantecon/gridtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""
import numpy as np
import scipy.misc
import scipy.special
from numba import jit, njit


Expand Down Expand Up @@ -281,4 +281,4 @@ def num_compositions(m, n):
"""
# docs.scipy.org/doc/scipy/reference/generated/scipy.misc.comb.html
return scipy.misc.comb(n+m-1, m-1, exact=True)
return scipy.special.comb(n+m-1, m-1, exact=True)

0 comments on commit 4d91490

Please sign in to comment.