FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xtensor-python/benchmark/benchmark_pyvectorize.py at master · xtensor-stack/xtensor-python · GitHub
xtensor-stack
xtensor-python
Repository navigation
Code
Issues
38
(38)
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
xtensor-python
/
benchmark
/
benchmark_pyvectorize.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (5 loc) · 226 Bytes
Breadcrumbs
xtensor-python
/
benchmark
/
benchmark_pyvectorize.py
Copy path
File metadata and controls
6 lines (5 loc) · 226 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
from
benchmark_xtensor_python
import
rect_to_polar
import
numpy
as
np
from
timeit
import
timeit
w
=
np
.
ones
(
100000
,
dtype
=
complex
)
print
(
timeit
(
'rect_to_polar(w[::2])'
,
'from __main__ import w, rect_to_polar'
,
number
=
1000
))
Back
|
FazBrowse Home
|
New Git URL