Commit 59f26d18 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2187 from luzpaz/misc-typos

Misc. typos
parents d883b86f 81c0e8da
...@@ -146,4 +146,4 @@ cdef extern from "Python.h": ...@@ -146,4 +146,4 @@ cdef extern from "Python.h":
# pointer. If pylong cannot be converted, an OverflowError will be # pointer. If pylong cannot be converted, an OverflowError will be
# raised. This is only assured to produce a usable void pointer # raised. This is only assured to produce a usable void pointer
# for values created with PyLong_FromVoidPtr(). For values outside # for values created with PyLong_FromVoidPtr(). For values outside
# 0..LONG_MAX, both signed and unsigned integers are acccepted. # 0..LONG_MAX, both signed and unsigned integers are accepted.
...@@ -4,7 +4,7 @@ from .object cimport PyObject ...@@ -4,7 +4,7 @@ from .object cimport PyObject
cdef extern from "Python.h": cdef extern from "Python.h":
# We make these an opague types. If the user wants specific attributes, # We make these an opaque types. If the user wants specific attributes,
# they can be declared manually. # they can be declared manually.
ctypedef struct PyInterpreterState: ctypedef struct PyInterpreterState:
......
...@@ -5,7 +5,7 @@ cdef extern from "<deque>" namespace "std" nogil: ...@@ -5,7 +5,7 @@ cdef extern from "<deque>" namespace "std" nogil:
# these should really be allocator_type.size_type and # these should really be allocator_type.size_type and
# allocator_type.difference_type to be true to the C++ definition # allocator_type.difference_type to be true to the C++ definition
# but cython doesn't support defered access on template arguments # but cython doesn't support deferred access on template arguments
ctypedef size_t size_type ctypedef size_t size_type
ctypedef ptrdiff_t difference_type ctypedef ptrdiff_t difference_type
......
...@@ -5,7 +5,7 @@ cdef extern from "<vector>" namespace "std" nogil: ...@@ -5,7 +5,7 @@ cdef extern from "<vector>" namespace "std" nogil:
# these should really be allocator_type.size_type and # these should really be allocator_type.size_type and
# allocator_type.difference_type to be true to the C++ definition # allocator_type.difference_type to be true to the C++ definition
# but cython doesn't support defered access on template arguments # but cython doesn't support deferred access on template arguments
ctypedef size_t size_type ctypedef size_t size_type
ctypedef ptrdiff_t difference_type ctypedef ptrdiff_t difference_type
......
...@@ -479,7 +479,7 @@ You can see them also by typing ```%%cython?`` in IPython or a Jupyter notebook. ...@@ -479,7 +479,7 @@ You can see them also by typing ```%%cython?`` in IPython or a Jupyter notebook.
-l LIB, --lib LIB Add a library to link the extension against (can be specified multiple times). -l LIB, --lib LIB Add a library to link the extension against (can be specified multiple times).
-L dir Add a path to the list of libary directories (can be specified multiple times). -L dir Add a path to the list of library directories (can be specified multiple times).
-I INCLUDE, --include INCLUDE Add a path to the list of include directories (can be specified multiple times). -I INCLUDE, --include INCLUDE Add a path to the list of include directories (can be specified multiple times).
......
...@@ -214,7 +214,7 @@ After building this and continuing my (very informal) benchmarks, I get: ...@@ -214,7 +214,7 @@ After building this and continuing my (very informal) benchmarks, I get:
So in the end, adding types make the Cython code slower? So in the end, adding types make the Cython code slower?
What happend is that most of the time spend in this code is spent on line What happened is that most of the time spend in this code is spent on line
54. :: 54. ::
value += g[smid - s, tmid - t] * f[v, w] value += g[smid - s, tmid - t] * f[v, w]
...@@ -404,7 +404,7 @@ code work for multiple NumPy data types? ...@@ -404,7 +404,7 @@ code work for multiple NumPy data types?
Yes, with the help of a new feature called fused types. Yes, with the help of a new feature called fused types.
You can learn more about it at :ref:`this section of the documentation You can learn more about it at :ref:`this section of the documentation
<fusedtypes>`. <fusedtypes>`.
It is similar to C++ 's templates. It generates mutiple function declarations It is similar to C++ 's templates. It generates multiple function declarations
at compile time, and then chooses the right one at run-time based on the at compile time, and then chooses the right one at run-time based on the
types of the arguments provided. By comparing types in if-conditions, it types of the arguments provided. By comparing types in if-conditions, it
is also possible to execute entirely different code paths depending is also possible to execute entirely different code paths depending
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment