diff options
author | MalikIdreesHasanKhan <77000356+MalikIdreesHasanKhan@users.noreply.github.com> | 2021-10-01 14:21:27 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 11:51:27 +0300 |
commit | c4b0b9d898ff958dcaa422e9fc6d554eafb284d5 (patch) | |
tree | 2e07a576254b82f5251d5330b895ba88bf606d0a | |
parent | 524cb10a35a3d16a4e196bad105db2acc4eb33ca (diff) | |
download | numpy-c4b0b9d898ff958dcaa422e9fc6d554eafb284d5.tar.gz |
DOC: Fix typos in the random and f2py documentation. (#20004)
* Fix typos
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 | ||||
-rw-r--r-- | numpy/f2py/symbolic.py | 2 | ||||
-rw-r--r-- | numpy/random/src/distributions/random_hypergeometric.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index c68aba5c8..661806645 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2671,7 +2671,7 @@ def analyzevars(block): init = init.tostring( language=symbolic.Language.C) vars[v]['='] = init - # n needs to be initialzed before v. So, + # n needs to be initialized before v. So, # making v dependent on n and on any # variables in solver or d. vars[v]['depend'] = [n] + deps diff --git a/numpy/f2py/symbolic.py b/numpy/f2py/symbolic.py index b747a75f9..1b7b35458 100644 --- a/numpy/f2py/symbolic.py +++ b/numpy/f2py/symbolic.py @@ -1098,7 +1098,7 @@ def as_term_coeff(obj): if len(obj.data) == 1: (term, coeff), = obj.data.items() return term, coeff - # TODO: find common divisior of coefficients + # TODO: find common divisor of coefficients if obj.op is Op.APPLY and obj.data[0] is ArithOp.DIV: t, c = as_term_coeff(obj.data[1][0]) return as_apply(ArithOp.DIV, t, obj.data[1][1]), c diff --git a/numpy/random/src/distributions/random_hypergeometric.c b/numpy/random/src/distributions/random_hypergeometric.c index 0da49bd62..d8510bfca 100644 --- a/numpy/random/src/distributions/random_hypergeometric.c +++ b/numpy/random/src/distributions/random_hypergeometric.c @@ -155,7 +155,7 @@ static int64_t hypergeometric_hrua(bitgen_t *bitgen_state, c = sqrt(var + 0.5); /* - * h is 2*s_hat (See Stadlober's theses (1989), Eq. (5.17); or + * h is 2*s_hat (See Stadlober's thesis (1989), Eq. (5.17); or * Stadlober (1990), Eq. 8). s_hat is the scale of the "table mountain" * function that dominates the scaled hypergeometric PMF ("scaled" means * normalized to have a maximum value of 1). |