Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68663e2

Browse files
committed
update
1 parent7501ee0 commit68663e2

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)

[8]ページ先頭

©2009-2025 Movatter.jp