How to install ArrayFire in R?

38 views
Skip to first unread message

E

unread,
Nov 24, 2023, 9:16:31 AM11/24/23
to ArrayFire Users
Hi,

I was wondering if somebody could help me install ArrayFire in R to use via Rcpp package?

There are RcppArrayFire packages however they seem to be all out of date and not working anymore

Thanks and best wishes, 
Enzo Cerullo

John Melonakos

unread,
Nov 27, 2023, 5:13:32 PM11/27/23
to ArrayFire Users
Hi Enzo,

We saw your email on our support channel saying you solved your problem. Let us know if there is anything else we can do to help. Thanks!

John

John Melonakos

unread,
Nov 28, 2023, 2:17:29 PM11/28/23
to ArrayFire Users
What are you trying to do? It is best to avoid loops and vectorize everything as much as possible:  https://arrayfire.org/docs/vectorization.htm#gsc.tab=0

Sometimes, you can accomplish if-else statements with smart indexing or vectorized elementwise operations to achieve the same overall effect.

Good luck!

On Tue, Nov 28, 2023 at 7:50 AM E <enzo.c...@bath.edu> wrote:
Hi John 

Thanks -  is it possible to do conditional-if-else statements in arrayfire? (vectorised)? I tried with a for-loop but extremely slow compared to Eigen which just uses CPU

Thanks,
Enzo

--
You received this message because you are subscribed to the Google Groups "ArrayFire Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arrayfire-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arrayfire-users/d7d485a6-d9a4-4988-82b3-5c693c9b8166n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages