How to implement "apply_along_axis" ?

21 views
Skip to first unread message

eli chan

unread,
May 22, 2022, 8:51:03 PM5/22/22
to ArrayFire Users
I want to use "gfor" to do simple parallel looping.
My line of thought is to:
1) create a 1D function, Fcn
2) increase an array, Arr  by adding a new dimension
3) apply Fcn along the new dimension of Arr

However, what is the most efficient way to implement "apply_along_axis"?
Reply all
Reply to author
Forward
0 new messages