Skip to content

Commit 68663e2

Browse files
committed
update
1 parent 7501ee0 commit 68663e2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

content/12-extensions/extensions-example.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ On my machine, (python 3.13, numpy 2.2.5, Cython 3.0.12, GCC 15, numba
286286

287287
| technique | timings (s) |
288288
| -------------------------------------------- | -------------- |
289-
| python / numpy | 0.216 |
290-
| python w/ explicit loops | 17.7 |
291-
| Numba(*) | 0.0902 |
292-
| Cython | 0.0879 |
293-
| Fortran + f2py | 0.0888 |
294-
| C++ + pybind11 (vector of vector) | 0.144 |
295-
| C++ + pybind11 (contiguous `Array`) | 0.109 |
289+
| python / numpy | 0.218 |
290+
| python w/ explicit loops | 17.4 |
291+
| Numba(*) | 0.0922 |
292+
| Cython | 0.0866 |
293+
| Fortran + f2py | 0.0860 |
294+
| C++ + pybind11 (vector of vector) | 0.120 |
295+
| C++ + pybind11 (contiguous `Array`) | 0.108 |
296296

297297

298298
(*) timing for the second invocation, which excludes JIT overhead.

examples/extensions/python/mandel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def mandelbrot(N,
1010

1111
xv, yv = np.meshgrid(x, y, indexing="ij")
1212

13-
c = xv + 1j*y
13+
c = xv + 1j * yv
1414

1515
z = np.zeros((N, N), dtype=np.complex128)
1616

0 commit comments

Comments
 (0)