Commit 53d4eea0 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #2140 from gabrieldemarmiesse/memview_docs

Mention Typed Memoryviews in the Working with NumPy doc.
parents f6b5a7b6 b312b6d7
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
Working with NumPy Working with NumPy
======================= =======================
.. NOTE:: In Cython 0.16, typed memoryviews were introduced.
They are easier to use than the numpy syntax, they are faster,
and don't need the GIL. They should be preferred to the
syntax presented in this page.
See :ref:`Typed Memoryviews <memoryviews>`.
You can use NumPy from Cython exactly the same as in regular Python, but by You can use NumPy from Cython exactly the same as in regular Python, but by
doing so you are losing potentially high speedups because Cython has support doing so you are losing potentially high speedups because Cython has support
for fast access to NumPy arrays. Let's see how this works with a simple for fast access to NumPy arrays. Let's see how this works with a simple
......
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