arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
416 stars 65 forks source link

Approx{1,2}_{v2,uniform}, af_gemm #234

Closed syurkevi closed 4 years ago

syurkevi commented 4 years ago

This PR adds approx functions from upstream 3.7. Writing to existing array is supported by the trailing output= kargs.

This PR also adds support for af_gemm. Adding a af_c{float,double}_t ctypes class was necessary as complex types aren't natively supported by ctypes (afaik).

TODO: Not sure how to best implement fp16 type