-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use arrayfire function #30
Comments
Hi, This is kinda of a hack but you can do it like this: a = afnumpy.ones((3,3))
b = afnumpy.array(afnumpy.arrayfire.matmul(a.d_array, a.d_array)) |
Thanks for your quick response. I will have a try! By the way, afnumpy is really efficient for me (Only use Matlab before). Huibin |
Thanks! |
BTW in the latest afnumpy |
Sounds great! I will have a try!
Huibin
////////////////////////////////////
常慧宾
数学科学学院
天津师范大学
CHANG Huibin,
School of Mathematical Sciences,
Tianjin Normal University,
P.R. China
2018-06-01 12:46 GMT-07:00 Filipe Maia <notifications@github.com>:
… BTW in the latest afnumpy afnumpy.dot does matrix multiplication when
given 2D arrays as input, just like regular numpy.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXnuTLEJzXh7V68dbHL2a2-mhpsF8Dp9ks5t4ZoMgaJpZM4USrCW>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Filipe. I want to know how to use the arrayfire function as arrayfire.matmul for matrix multiplication and other functions in arrayfire.linalg. Does it exist a easy way for this?
I tried to use af.arrayfire.matmul. However, it failed since it can not recognize the data type. To run the code, I have to copy the data from GPU to CPU, and then use numpy function instead of afnumpy.
Thanks.
The text was updated successfully, but these errors were encountered: