Skip to content

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

Merged
9prady9 merged 2 commits into
arrayfire:masterfrom
syurkevi:approx_complex
Aug 20, 2020
Merged

9prady9 merged 2 commits into
arrayfire:masterfrom
syurkevi:approx_complex

Conversation

@syurkevi

Copy link
Copy Markdown
Contributor

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 bad-ass 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

Comment thread arrayfire/blas.py
raise TypeError("unsupported f*ckin' input type")


safe_call(backend.get().af_gemm(c_pointer(out.arr),

Copy link
Copy Markdown
Member

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

Unrelated to this PR: I am curious if we have to do backend.get() for every such call. Is this cost negligible ?

@9prady9
9prady9 merged commit a914b02 into arrayfire:master Aug 20, 2020
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants