8000 Auto merge of #7134 - dongjoon-hyun:fix_typos_in_code_comments, r=njs… · numpy/numpy@e280539 · GitHub
[go: up one dir, main page]

Skip to content

Commit e280539

Browse files
committed
Auto merge of #7134 - dongjoon-hyun:fix_typos_in_code_comments, r=njsmith
MAINT: Fix some typos in a code string and comments
2 parents 2b34f4b + 73a2fd1 commit e280539

30 files changed

+38
-38
lines changed

numpy/_build_utils/src/apple_sgemv_fix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void sgemv_( const char* trans, const int* m, const int* n,
155155
*
156156
* Because Fortran uses column major order and X.T and Y.T are row vectors,
157157
* the leading dimensions of X.T and Y.T in SGEMM become equal to the
158-
* strides of the the column vectors X and Y in SGEMV. */
158+
* strides of the column vectors X and Y in SGEMV. */
159159

160160
switch (*trans) {
161161
case 'T':

numpy/core/include/numpy/ndarraytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ typedef int (PyArray_FinalizeFunc)(PyArrayObject *, PyObject *);
781781

782782
/*
783783
* An array never has the next four set; they're only used as parameter
784-
* flags to the the various FromAny functions
784+
* flags to the various FromAny functions
785785
*
786786
* This flag may be requested in constructor functions.
787787
*/

numpy/core/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
- array - NumPy Array construction
66
- zeros - Return an array of all zeros
7-
- empty - Return an unitialized array
7+
- empty - Return an uninitialized array
88
- shape - Return shape of sequence or array
99
- rank - Return number of dimensions
1010
- size - Return number of elements in entire array or a

numpy/core/src/multiarray/arrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
by
1212
1313
Travis Oliphant, oliphant@ee.byu.edu
14-
Brigham Young Univeristy
14+
Brigham Young University
1515
1616
1717
maintainer email: oliphant.travis@ieee.org

numpy/core/src/multiarray/ctors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ PyArray_NewFromDescr_int(PyTypeObject *subtype, PyArray_Descr *descr, int nd,
10491049
sd = descr->elsize;
10501050
}
10511051
/*
1052-
* It is bad to have unitialized OBJECT pointers
1052+
* It is bad to have uninitialized OBJECT pointers
10531053
* which could also be sub-fields of a VOID array
10541054
*/
10551055
if (zeroed || PyDataType_FLAGCHK(descr, NPY_NEEDS_INIT)) {

numpy/core/src/multiarray/datetime_busdaycal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ qsort_datetime_compare(const void *elem1, const void *elem2)
214214
}
215215

216216
/*
217-
* Sorts the the array of dates provided in place and removes
217+
* Sorts the array of dates provided in place and removes
218218
* NaT, duplicates and any date which is already excluded on account
219219
* of the weekmask.
220220
*

numpy/core/src/multiarray/datetime_busdaycal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ NPY_NO_EXPORT int
3737
PyArray_WeekMaskConverter(PyObject *weekmask_in, npy_bool *weekmask);
3838

3939
/*
40-
* Sorts the the array of dates provided in place and removes
40+
* Sorts the array of dates provided in place and removes
4141
* NaT, duplicates and any date which is already excluded on account
4242
* of the weekmask.
4343
*

numpy/core/src/multiarray/dtype_transfer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* implemented here.
55
*
66
* Copyright (c) 2010 by Mark Wiebe (mwwiebe@gmail.com)
7-
* The Univerity of British Columbia
7+
* The University of British Columbia
88
*
99
* See LICENSE.txt for the license.
1010

numpy/core/src/multiarray/einsum.c.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* which provides an einstein-summation operation.
44
*
55
* Copyright (c) 2011 by Mark Wiebe (mwwiebe@gmail.com)
6-
* The Univerity of British Columbia
6+
* The University of British Columbia
77
*
88
* See LICENSE.txt for the license.
99
*/

numpy/core/src/multiarray/item_selection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ _new_sortlike(PyArrayObject *op, int axis, PyArray_SortFunc *sort,
842842
/*
843843
* For dtype's with objects, copyswapn Py_XINCREF's src
844844
* and Py_XDECREF's dst. This would crash if called on
845-
* an unitialized buffer, or leak a reference to each
845+
* an uninitialized buffer, or leak a reference to each
846846
* object if initialized.
847847
*
848848
* So, first do the copy with no refcounting...
@@ -1003,7 +1003,7 @@ _new_argsortlike(PyArrayObject *op, int axis, PyArray_ArgSortFunc *argsort,
10031003
/*
10041004
* For dtype's with objects, copyswapn Py_XINCREF's src
10051005
* and Py_XDECREF's dst. This would crash if called on
1006-
* an unitialized valbuffer, or leak a reference to
1006+
* an uninitialized 4867 valbuffer, or leak a reference to
10071007
* each object item if initialized.
10081008
*
10091009
* So, first do the copy with no refcounting...

0 commit comments

Comments
 (0)
0