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

approx1 off_grid Error

ajflood opened this issue · comments

When working with the approx1 function I found an error in singal.py. I found that the off_grid format should be float not double. I have tested it on my machine and it now works as expected.

Here is the previous code:
safe_call(backend.get().af_approx1(c_pointer(output.arr), signal.arr, pos0.arr,method.value, c_double_t(off_grid)))

Which I changed to fix the problem:
safe_call(backend.get().af_approx1(c_pointer(output.arr), signal.arr, pos0.arr,method.value, c_float_t(off_grid)))

Sorry if this is not proper procedure for fixing bugs, this is my first time reporting bugs using github.

@ajflood The procedure to send in a bug fix can be found here: https://github.com/arrayfire/arrayfire/wiki/Contribute-code-using-github

Please use arrayfire-python instead of arrayfire wherever required. Let me know if you have any questions regarding the process.

Welcome to the world of open source contributors!