Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
59f26d18
Commit
59f26d18
authored
Apr 08, 2018
by
scoder
Committed by
GitHub
Apr 08, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2187 from luzpaz/misc-typos
Misc. typos
parents
d883b86f
81c0e8da
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
Cython/Includes/cpython/long.pxd
Cython/Includes/cpython/long.pxd
+1
-1
Cython/Includes/cpython/pystate.pxd
Cython/Includes/cpython/pystate.pxd
+1
-1
Cython/Includes/libcpp/deque.pxd
Cython/Includes/libcpp/deque.pxd
+1
-1
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+1
-1
docs/src/reference/compilation.rst
docs/src/reference/compilation.rst
+1
-1
docs/src/userguide/numpy_tutorial.rst
docs/src/userguide/numpy_tutorial.rst
+2
-2
No files found.
Cython/Includes/cpython/long.pxd
View file @
59f26d18
...
...
@@ -146,4 +146,4 @@ cdef extern from "Python.h":
# pointer. If pylong cannot be converted, an OverflowError will be
# raised. This is only assured to produce a usable void pointer
# for values created with PyLong_FromVoidPtr(). For values outside
# 0..LONG_MAX, both signed and unsigned integers are acc
c
epted.
# 0..LONG_MAX, both signed and unsigned integers are accepted.
Cython/Includes/cpython/pystate.pxd
View file @
59f26d18
...
...
@@ -4,7 +4,7 @@ from .object cimport PyObject
cdef
extern
from
"Python.h"
:
# We make these an opa
g
ue types. If the user wants specific attributes,
# We make these an opa
q
ue types. If the user wants specific attributes,
# they can be declared manually.
ctypedef
struct
PyInterpreterState
:
...
...
Cython/Includes/libcpp/deque.pxd
View file @
59f26d18
...
...
@@ -5,7 +5,7 @@ cdef extern from "<deque>" namespace "std" nogil:
# these should really be allocator_type.size_type and
# 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 defer
r
ed access on template arguments
ctypedef
size_t
size_type
ctypedef
ptrdiff_t
difference_type
...
...
Cython/Includes/libcpp/vector.pxd
View file @
59f26d18
...
...
@@ -5,7 +5,7 @@ cdef extern from "<vector>" namespace "std" nogil:
# these should really be allocator_type.size_type and
# 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 defer
r
ed access on template arguments
ctypedef
size_t
size_type
ctypedef
ptrdiff_t
difference_type
...
...
docs/src/reference/compilation.rst
View file @
59f26d18
...
...
@@ -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 dir Add a path to the list of libary directories (can be specified multiple times).
-L dir Add a path to the list of lib
r
ary directories (can be specified multiple times).
-I INCLUDE, --include INCLUDE Add a path to the list of include directories (can be specified multiple times).
...
...
docs/src/userguide/numpy_tutorial.rst
View file @
59f26d18
...
...
@@ -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?
What happend is that most of the time spend in this code is spent on line
What happen
e
d is that most of the time spend in this code is spent on line
54. ::
value += g[smid - s, tmid - t] * f[v, w]
...
...
@@ -404,7 +404,7 @@ code work for multiple NumPy data 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
<fusedtypes>`.
It is similar to C++ 's templates. It generates mutiple function declarations
It is similar to C++ 's templates. It generates mu
l
tiple function declarations
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
is also possible to execute entirely different code paths depending
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment