8000 Merge pull request #21504 from Yulv-git/typos1 · rjeb/numpy@d4732a2 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4732a2

Browse files
authored
Merge pull request numpy#21504 from Yulv-git/typos1
MAINT: Fix some typos.
2 parents d985fd4 + 7332a69 commit d4732a2

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

numpy/core/src/common/npy_cpu_features.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ npy_cpu_features_dict(void);
137137
* that supported by the compiler and platform according to the specified
138138
* values to command argument '--cpu-baseline'.
139139
*
140-
* This function is mainly used to implement umath's attrbute '__cpu_baseline__',
140+
* This function is mainly used to implement umath's attribute '__cpu_baseline__',
141141
* and the items are sorted from the lowest to highest interest.
142142
*
143143
* For example, according to the default build configuration and by assuming the compiler
@@ -159,7 +159,7 @@ npy_cpu_baseline_list(void);
159159
* that supported by the compiler and platform according to the specified
160160
* values to command argument '--cpu-dispatch'.
161161
*
162-
* This function is mainly used to implement umath's attrbute '__cpu_dispatch__',
162+
* This function is mainly used to implement umath's attribute '__cpu_dispatch__',
163163
* and the items are sorted from the lowest to highest interest.
164164
*
165165
* For example, according to the default build configuration and by assuming the compiler

numpy/core/tests/test_array_coercion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def scalar_instances(times=True, extended_precision=True, user_dtype=True):
135135

136136

137137
def is_parametric_dtype(dtype):
138-
"""Returns True if the the dtype is a parametric legacy dtype (itemsize
138+
"""Returns True if the dtype is a parametric legacy dtype (itemsize
139139
is 0, or a datetime without units)
140140
"""
141141
if dtype.itemsize == 0:

numpy/linalg/lapack_lite/f2c_c_lapack.c

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

numpy/linalg/lapack_lite/f2c_d_lapack.c

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

numpy/linalg/lapack_lite/f2c_s_lapack.c

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

numpy/linalg/lapack_lite/f2c_z_lapack.c

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

numpy/ma/extras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ def notmasked_contiguous(a, axis=None):
18441844
a = asarray(a)
18451845
nd = a.ndim
18461846
if nd > 2:
1847-
raise NotImplementedError("Currently limited to atmost 2D array.")
1847+
raise NotImplementedError("Currently limited to at most 2D array.")
18481848
if axis is None or nd == 1:
18491849
return flatnotmasked_contiguous(a)
18501850
#

numpy/random/_generator.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2990,7 +2990,7 @@ cdef class Generator:
29902990
probability of success, :math:`N+n` is the number of trials, and
29912991
:math:`\\Gamma` is the gamma function. When :math:`n` is an integer,
29922992
:math:`\\frac{\\Gamma(N+n)}{N!\\Gamma(n)} = \\binom{N+n-1}{N}`, which is
2993-
the more common form of this term in the the pmf. The negative
2993+
the more common form of this term in the pmf. The negative
29942994
binomial distribution gives the probability of N failures given n
29952995
successes, with a success on the last trial.
29962996

numpy/random/mtrand.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ cdef class RandomState:
139139
'RandomState' methods using the same parameters will always produce the
140140
same results up to roundoff error except when the values were incorrect.
141141
`RandomState` is effectively frozen and will only receive updates that
142-
are required by changes in the the internals of Numpy. More substantial
142+
are required by changes in the internals of Numpy. More substantial
143143
changes, including algorithmic improvements, are reserved for
144144
`Generator`.
145145
@@ -3478,7 +3478,7 @@ cdef class RandomState:
34783478
probability of success, :math:`N+n` is the number of trials, and
34793479
:math:`\\Gamma` is the gamma function. When :math:`n` is an integer,
34803480
:math:`\\frac{\\Gamma(N+n)}{N!\\Gamma(n)} = \\binom{N+n-1}{N}`, which is
3481-
the more common form of this term in the the pmf. The negative
3481+
the more common form of this term in the pmf. The negative
34823482
binomial distribution gives the probability of N failures given n
34833483
successes, with a success on the last trial.
34843484

0 commit comments

Comments
 (0)
0