arrayfire / arrayfire/arrayfire

[BUG] approx1 and approx2 produce suspect values in last bin

未关闭
#3,239 1 条评论 0 个 reaction 已指派 1 人 已被 @syurkevi 认领 在 GitHub 查看
bug
主要语言
C++
星标
4.9k
派生
555
平均合并
1 小时 24 分钟
30 天内合并 PR
1

描述

approx1 and approx2 cubic spline interpolation methods produce suspect values in the last bin at the boundary.

Description
===========
* Used official installers
* Occurs on all backends
* Partial workaround is just using higher resolution so that boundary regions are small
* Bug is reliably reproducible
* Expected output to match scipy's RectBivariateSpline method, which wraps fitpack
* No error output

Example interpolating on cos(x) with comparison to scipy:
image

Reproducible Code and/or Steps
------------------------------
* Any use of approx1 or approx2 with cubic spline interpolation type

System Information
------------------
Tested with AF version 3.7.2 on Mac & 3.8.1 on Ubuntu 20.04, both via the Rust bindings.

Info from Mac for convenience:
```
Available backends: [OPENCL, CPU]
Active backend: CPU
Number of available devices: 1
Device number: 0
Device info: ("Intel", "CPU", "AppleClang 10.0.0.10001044", "0.0")
```

Checklist
---------

- [x] Using the latest available ArrayFire release
- [x] GPU drivers are up to date

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。