summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2019-05-31 03:13:33 -0400
committerMatti Picus <matti.picus@gmail.com>2019-05-31 10:13:33 +0300
commit0c70787c04d7b0febacb14edfe214cb68d87b6c3 (patch)
treea518387f3e9134d753ac4d09009ab4764a8dd4b2 /numpy/random
parent43465f725bc47a36f08c5e69a61c2702a97491b8 (diff)
downloadnumpy-0c70787c04d7b0febacb14edfe214cb68d87b6c3.tar.gz
MAINT: Misc. typo fixes (#13664)
* DOC, MAINT: Misc. typo fixes Found via `codespell`
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/generator.pyx2
-rw-r--r--numpy/random/mtrand.pyx2
-rw-r--r--numpy/random/src/philox/philox-benchmark.c2
-rw-r--r--numpy/random/src/philox/philox-test-data-gen.c2
-rw-r--r--numpy/random/src/threefry/threefry-benchmark.c2
-rw-r--r--numpy/random/src/threefry/threefry-test-data-gen.c2
-rw-r--r--numpy/random/src/xoshiro256/xoshiro256-test-data-gen.c2
-rw-r--r--numpy/random/src/xoshiro512/xoshiro512-test-data-gen.c2
-rw-r--r--numpy/random/tests/test_randomstate.py2
9 files changed, 9 insertions, 9 deletions
diff --git a/numpy/random/generator.pyx b/numpy/random/generator.pyx
index fd93d5efe..cb3df2626 100644
--- a/numpy/random/generator.pyx
+++ b/numpy/random/generator.pyx
@@ -440,7 +440,7 @@ cdef class Generator:
'when required.')
# Implementation detail: the old API used a masked method to generate
- # bounded uniform integers. Lemire's method is preferrable since it is
+ # bounded uniform integers. Lemire's method is preferable since it is
# faster. randomgen allows a choice, we will always use the faster one.
cdef bint _masked = True
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx
index 50c8a0b2f..48ff6b0a6 100644
--- a/numpy/random/mtrand.pyx
+++ b/numpy/random/mtrand.pyx
@@ -621,7 +621,7 @@ cdef class RandomState:
'ValueError', DeprecationWarning)
# Implementation detail: the use a masked method to generate
- # bounded uniform integers. Lemire's method is preferrable since it is
+ # bounded uniform integers. Lemire's method is preferable since it is
# faster. randomgen allows a choice, we will always use the slower but
# backward compatible one.
cdef bint _masked = True
diff --git a/numpy/random/src/philox/philox-benchmark.c b/numpy/random/src/philox/philox-benchmark.c
index 0cab04cf5..df5814d5f 100644
--- a/numpy/random/src/philox/philox-benchmark.c
+++ b/numpy/random/src/philox/philox-benchmark.c
@@ -5,7 +5,7 @@
*
* gcc philox-benchmark.c -O3 -o philox-benchmark
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*/
#include "Random123/philox.h"
diff --git a/numpy/random/src/philox/philox-test-data-gen.c b/numpy/random/src/philox/philox-test-data-gen.c
index 442e18b55..a5fcaa690 100644
--- a/numpy/random/src/philox/philox-test-data-gen.c
+++ b/numpy/random/src/philox/philox-test-data-gen.c
@@ -7,7 +7,7 @@
* gcc philox-test-data-gen.c -o philox-test-data-gen
* ./philox-test-data-gen
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*
*/
diff --git a/numpy/random/src/threefry/threefry-benchmark.c b/numpy/random/src/threefry/threefry-benchmark.c
index 6d6239cd3..5e2cfe844 100644
--- a/numpy/random/src/threefry/threefry-benchmark.c
+++ b/numpy/random/src/threefry/threefry-benchmark.c
@@ -5,7 +5,7 @@
*
* gcc threefry-benchmark.c -O3 -o threefry-benchmark
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*/
#include "Random123/threefry.h"
diff --git a/numpy/random/src/threefry/threefry-test-data-gen.c b/numpy/random/src/threefry/threefry-test-data-gen.c
index 328eb2575..8514a227e 100644
--- a/numpy/random/src/threefry/threefry-test-data-gen.c
+++ b/numpy/random/src/threefry/threefry-test-data-gen.c
@@ -8,7 +8,7 @@
* threefry-test-data-gen
* ./threefry-test-data-gen
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*
*/
diff --git a/numpy/random/src/xoshiro256/xoshiro256-test-data-gen.c b/numpy/random/src/xoshiro256/xoshiro256-test-data-gen.c
index 94eeb7346..b5351bf7a 100644
--- a/numpy/random/src/xoshiro256/xoshiro256-test-data-gen.c
+++ b/numpy/random/src/xoshiro256/xoshiro256-test-data-gen.c
@@ -9,7 +9,7 @@
* ../splitmix64/splitmix64.c -o xoshiro256-test-data-gen
* ./xoshiro256-test-data-gen
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*
*/
diff --git a/numpy/random/src/xoshiro512/xoshiro512-test-data-gen.c b/numpy/random/src/xoshiro512/xoshiro512-test-data-gen.c
index 83e164a51..698923bda 100644
--- a/numpy/random/src/xoshiro512/xoshiro512-test-data-gen.c
+++ b/numpy/random/src/xoshiro512/xoshiro512-test-data-gen.c
@@ -9,7 +9,7 @@
* ../splitmix64/splitmix64.c -o xoshiro512-test-data-gen
* ./xoshiro512-test-data-gen
*
- * Requres the Random123 directory containing header files to be located in the
+ * Requires the Random123 directory containing header files to be located in the
* same directory (not included).
*
*/
diff --git a/numpy/random/tests/test_randomstate.py b/numpy/random/tests/test_randomstate.py
index 5e2b93f52..d8a07e8b2 100644
--- a/numpy/random/tests/test_randomstate.py
+++ b/numpy/random/tests/test_randomstate.py
@@ -1903,7 +1903,7 @@ class TestSingleEltArrayInput(object):
assert_equal(out.shape, self.tgtShape)
-# Ensure returned array dtype is corect for platform
+# Ensure returned array dtype is correct for platform
def test_integer_dtype(int_func):
random.seed(123456789)
fname, args, md5 = int_func