arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug in af.approx1()

shyams2 opened this issue · comments

I've written a file comparing the results of the interpolate function in scipy libraries, and arrayfire:

http://nbviewer.jupyter.org/gist/ShyamSS-95/9267f7f860f4ce5aa5ea785c937bbfda

I don't seem to be getting the same result for both the functions.
af.approx1() seems to be quite off from the expected curve.

Is there a bug here?

@ShyamSS-95 can you plot asin(interpolated - actual) ?

@ShyamSS-95 wait that wouldn't work. I keep forgetting my trigonometric formulas :) It looks like the two curves are phase shifted. I'll investigate it once I get home.