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
Gwenaël Samain
cython
Commits
db47de21
Commit
db47de21
authored
May 20, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some rephrasing.
parent
eedf8d9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
docs/src/tutorial/cython_tutorial.rst
docs/src/tutorial/cython_tutorial.rst
+5
-4
No files found.
docs/src/tutorial/cython_tutorial.rst
View file @
db47de21
...
...
@@ -343,8 +343,9 @@ standard library.
.. note::
Vector in C++ is a data structure which represents
a `stack <https://en.wikipedia.org/wiki/Stack_(abstract_data_type)>`_.
Vector in C++ is a data structure which implements a list or stack based
on a resizeable C array. It is similar to the Python ``array``
type in the ``array`` standard library module.
There is a method `reserve` available which will avoid copies if you know in advance
how many elements you are going to put in the vector. For more details
see `this page from cppreference <http://en.cppreference.com/w/cpp/container/vector>`_.
...
...
@@ -353,8 +354,8 @@ standard library.
:linenos:
The first line is a compiler directive. It tells Cython to compile your code to C++.
This will enable the use of the C++ standard library.
Note that
this
isn't possible to compile Cython code to C++ with `pyximport`. You
This will enable the use of
C++ language features and
the C++ standard library.
Note that
it
isn't possible to compile Cython code to C++ with `pyximport`. You
should use a :file:`setup.py` or a notebook to run this example.
You can see that the API of a vector is similar to the API of a Python list,
...
...
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