diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2019-05-31 03:13:33 -0400 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2019-05-31 10:13:33 +0300 |
commit | 0c70787c04d7b0febacb14edfe214cb68d87b6c3 (patch) | |
tree | a518387f3e9134d753ac4d09009ab4764a8dd4b2 /doc/source/reference | |
parent | 43465f725bc47a36f08c5e69a61c2702a97491b8 (diff) | |
download | numpy-0c70787c04d7b0febacb14edfe214cb68d87b6c3.tar.gz |
MAINT: Misc. typo fixes (#13664)
* DOC, MAINT: Misc. typo fixes
Found via `codespell`
Diffstat (limited to 'doc/source/reference')
-rw-r--r-- | doc/source/reference/c-api.array.rst | 2 | ||||
-rw-r--r-- | doc/source/reference/c-api.coremath.rst | 8 | ||||
-rw-r--r-- | doc/source/reference/random/index.rst | 6 | ||||
-rw-r--r-- | doc/source/reference/random/new-or-different.rst | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst index de412a5d2..d01d28f0e 100644 --- a/doc/source/reference/c-api.array.rst +++ b/doc/source/reference/c-api.array.rst @@ -219,7 +219,7 @@ From scratch If *data* is ``NULL``, then new unitinialized memory will be allocated and *flags* can be non-zero to indicate a Fortran-style contiguous array. Use - :c:func:`PyArray_FILLWBYTE` to initialze the memory. + :c:func:`PyArray_FILLWBYTE` to initialize the memory. If *data* is not ``NULL``, then it is assumed to point to the memory to be used for the array and the *flags* argument is used as the diff --git a/doc/source/reference/c-api.coremath.rst b/doc/source/reference/c-api.coremath.rst index bb457eb0d..7e00322f9 100644 --- a/doc/source/reference/c-api.coremath.rst +++ b/doc/source/reference/c-api.coremath.rst @@ -185,7 +185,7 @@ Those can be useful for precise floating point comparison. * NPY_FPE_INVALID Note that :c:func:`npy_get_floatstatus_barrier` is preferable as it prevents - agressive compiler optimizations reordering the call relative to + aggressive compiler optimizations reordering the call relative to the code setting the status, which could lead to incorrect results. .. versionadded:: 1.9.0 @@ -193,7 +193,7 @@ Those can be useful for precise floating point comparison. .. c:function:: int npy_get_floatstatus_barrier(char*) Get floating point status. A pointer to a local variable is passed in to - prevent aggresive compiler optimizations from reodering this function call + prevent aggressive compiler optimizations from reodering this function call relative to the code setting the status, which could lead to incorrect results. @@ -211,7 +211,7 @@ Those can be useful for precise floating point comparison. Clears the floating point status. Returns the previous status mask. Note that :c:func:`npy_clear_floatstatus_barrier` is preferable as it - prevents agressive compiler optimizations reordering the call relative to + prevents aggressive compiler optimizations reordering the call relative to the code setting the status, which could lead to incorrect results. .. versionadded:: 1.9.0 @@ -219,7 +219,7 @@ Those can be useful for precise floating point comparison. .. c:function:: int npy_clear_floatstatus_barrier(char*) Clears the floating point status. A pointer to a local variable is passed in to - prevent aggresive compiler optimizations from reodering this function call. + prevent aggressive compiler optimizations from reodering this function call. Returns the previous status mask. .. versionadded:: 1.15.0 diff --git a/doc/source/reference/random/index.rst b/doc/source/reference/random/index.rst index 0b8145735..3159f0e1c 100644 --- a/doc/source/reference/random/index.rst +++ b/doc/source/reference/random/index.rst @@ -5,7 +5,7 @@ numpy.random ============ -Numpy's random number routines produce psuedo random numbers using +Numpy's random number routines produce pseudo random numbers using combinations of a `BitGenerator` to create sequences and a `Generator` to use those sequences to sample from different statistical distributions: @@ -41,7 +41,7 @@ which will be faster than the legacy methods in `RandomState` `Generator` can be used as a direct replacement for `~RandomState`, although the random values are generated by `~xoshiro256.Xoshiro256`. The -`Generator` holds an instance of a BitGenerator. It is accessable as +`Generator` holds an instance of a BitGenerator. It is accessible as ``gen.bit_generator``. .. code-block:: python @@ -127,7 +127,7 @@ What's New or Different :ref:`Cython <randomgen_cython>`. * `~.Generator.integers` is now the canonical way to generate integer random numbers from a discrete uniform distribution. The ``rand`` and - ``randn`` methods are only availabe through the legacy `~.RandomState`. + ``randn`` methods are only available through the legacy `~.RandomState`. The ``endpoint`` keyword can be used to specify open or closed intervals. This replaces both ``randint`` and the deprecated ``random_integers``. * `~.Generator.random` is now the canonical way to generate floating-point diff --git a/doc/source/reference/random/new-or-different.rst b/doc/source/reference/random/new-or-different.rst index 969a9372d..a6de9c8dc 100644 --- a/doc/source/reference/random/new-or-different.rst +++ b/doc/source/reference/random/new-or-different.rst @@ -54,7 +54,7 @@ And in more detail: `~.Generator.standard_gamma`. * `~.Generator.integers` is now the canonical way to generate integer random numbers from a discrete uniform distribution. The ``rand`` and - ``randn`` methods are only availabe through the legacy `~.RandomState`. + ``randn`` methods are only available through the legacy `~.RandomState`. This replaces both ``randint`` and the deprecated ``random_integers``. * The Box-Muller used to produce NumPy's normals is no longer available. * All bit generators can produce doubles, uint64s and |