Bugs in af.approx1()
還沒有人認領這個 Issue。
評估
研究方向
首先執行連結的重現程式碼,並檢查使用 af.INTERP.CUBIC 和 af.INTERP.CUBIC_SPLINE 的 af.approx1。將觀察到的收斂率和誤差下限與 SciPy 的 interp1d 進行比較;完成的標準是識別並修正插值行為,從而恢復預期的收斂性和準確性。
由索引模型根據 Issue 內容生成。
描述
Convergence checks performed on the ArrayFire routines for interpolation seem to indicate a few mistakes:
The following plot is generated using af.INTERP.CUBIC

The order of convergence comes out to be
, while the expected convergence rate is
. I checked with af.INTERP.CUBIC_SPLINE as well. Even in that case the order of convergence comes out to be 

Another issue is the fact that the error doesn't drop below 1e-7. The SciPy interpolation function interp1d using cubic interpolation gives this:

For your reference - this is the code I'd used to generate the plots.
Also regarding issue #130 - I've realised that the mistake was on my part. I should have added the off-set in the indexing to the normalized interpolant points.
- 主要語言
- Python
- 星號
- 422
- 分支
- 63
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
arrayfire/arrayfire-python 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
arrayfire/arrayfire-python#271 ·
-
難度 5/5 一週以上 新手友好度 25/100
arrayfire/arrayfire-python#270 ·
-
難度 4/5 3-5 天 新手友好度 35/100
arrayfire/arrayfire-python#269 ·
-
難度 4/5 3-5 天 新手友好度 38/100
arrayfire/arrayfire-python#268 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
arrayfire/arrayfire-python#267 · 1 則留言 · 1 個 reaction ·
查看 arrayfire/arrayfire-python 的全部 Issue
相似的 Issue
-
Add: hunch 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 68/100
DiamondLightSource/dodal#2211 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
openml/openml-python#1749 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
sipyourdrink-ltd/bernstein#6191 ·