Bugs in af.approx1()
まだ誰も着手していません。
評価
調査の方向性
まず、リンクされた再現コードを実行し、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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
arrayfire/arrayfire-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-python#271 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 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 件 ·
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 ·