arrayfire / arrayfire/arrayfire-python
timeit error in example convolve.py
Open
- Dominant language
- Python
- Stars
- 422
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
When I run the convolve.py
I met a error with timeit function

I will get sample_time= 0 after sample_trials=3.So It will bring a ZeroDivisionError.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the convolve.py example and inspect its timeit usage around sample_time and sample_trials. Confirm the example no longer reaches a ZeroDivisionError when sample_time is 0 and that it reports a valid timing result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100