Skip to content

Commit

Permalink
Merge pull request #19732 from slowy07/minor-changes
Browse files Browse the repository at this point in the history
MAINT: Spelling fixes in documentation
  • Loading branch information
charris committed Aug 23, 2021
2 parents 6d8eacd + 06be063 commit 158159d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions numpy/core/src/common/npy_cpu_dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* avoid linking duplications due to the nature of the dispatch-able sources.
*
* Example:
* @targets baseline avx avx512_skx vsx3 asimdhp // configration statments
* @targets baseline avx avx512_skx vsx3 asimdhp // configuration statements
*
* void NPY_CPU_DISPATCH_CURFX(dispatch_me)(const int *src, int *dst)
* {
Expand Down Expand Up @@ -180,7 +180,7 @@
* Macro NPY_CPU_DISPATCH_DECLARE_XB(LEFT, ...)
*
* Same as `NPY_CPU_DISPATCH_DECLARE` but exclude the baseline declaration even
* if it was provided within the configration statments.
* if it was provided within the configuration statements.
*/
#define NPY_CPU_DISPATCH_DECLARE_XB(...) \
NPY__CPU_DISPATCH_CALL(NPY_CPU_DISPATCH_DECLARE_CHK_, NPY_CPU_DISPATCH_DECLARE_CB_, __VA_ARGS__)
Expand All @@ -196,7 +196,7 @@
* Example:
* Assume we have a dispatch-able source exporting the following function:
*
* @targets baseline avx2 avx512_skx // configration statments
* @targets baseline avx2 avx512_skx // configration statements
*
* void NPY_CPU_DISPATCH_CURFX(dispatch_me)(const int *src, int *dst)
* {
Expand Down Expand Up @@ -238,7 +238,7 @@
* Macro NPY_CPU_DISPATCH_CALL_XB(LEFT, ...)
*
* Same as `NPY_CPU_DISPATCH_DECLARE` but exclude the baseline declaration even
* if it was provided within the configration statements.
* if it was provided within the configuration statements.
* Returns void.
*/
#define NPY_CPU_DISPATCH_CALL_XB_CB_(TESTED_FEATURES, TARGET_NAME, LEFT, ...) \
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/convert_datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ PyArray_GetCastSafety(

/**
* Check whether a cast is safe, see also `PyArray_GetCastSafety` for
* a similiar function. Unlike GetCastSafety, this function checks the
* a similar function. Unlike GetCastSafety, this function checks the
* `castingimpl->casting` when available. This allows for two things:
*
* 1. It avoids calling `resolve_descriptors` in some cases.
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/tests/test_simd.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def trunc_div(a, d):
return

safe_neg = lambda x: -x-1 if -x > int_max else -x
# test round divison for signed integers
# test round division for signed integers
for x, d in itertools.product(rdata, divisors):
d_neg = safe_neg(d)
data = self._data(x)
Expand Down

0 comments on commit 158159d

Please sign in to comment.