ae151484780b389b5c7b4530c9ac1ef4bb659e23,scipy/special/_basic.py,,factorial,#Any#Any#,2277
Before Change
if np.ndim(n) == 0:
return 0 if n < 0 else gamma(n + 1)
n = asarray(n)
vals = gamma(n + 1)
return where(n >= 0, vals, 0)
def factorial2(n, exact=False):
Double factorial.
After Change
out[np.isnan(n)] = n[np.isnan(n)]
return out
else:
out = ufuncs._factorial(n)
return out
def factorial2(n, exact=False):
Double factorial.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: scipy/scipy
Commit Name: ae151484780b389b5c7b4530c9ac1ef4bb659e23
Time: 2020-01-13
Author: rlucas7@users.noreply.github.com
File Name: scipy/special/_basic.py
Class Name:
Method Name: factorial
Project Name: pandas-dev/pandas
Commit Name: 25c541269c2c4003e4f8c2e6fa3b3c75cb1e5a46
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/core/indexes/period.py
Class Name: PeriodIndex
Method Name: asof_locs
Project Name: scipy/scipy
Commit Name: c5757d979cc67469b056f42b76ceccd82dc8d17d
Time: 2015-06-30
Author: johannes@balle.io
File Name: scipy/stats/_continuous_distns.py
Class Name: gengamma_gen
Method Name: _cdf
Project Name: geomstats/geomstats
Commit Name: 48f114dfb7ae386b8baef4e261a554a1cdedc4b9
Time: 2020-01-22
Author: opeltre@gmail.com
File Name: geomstats/geometry/general_linear.py
Class Name: GeneralLinear
Method Name: belongs