-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature request: slice/slices, mapslices #187
Comments
That's just an alias to indexing, so |
Thanks. In that case, could you support |
I don't think that's enough to support mapslices :( |
Thanks, I've added mapslices to the title. Is it likely to be supported in the near future? It seems useful. |
Can current ArrayFire.jl do similarly to the following C++ code snippet? int n = 8, int m = 8; // dimensions
int t = 10; // number of different matricies
array A = randu(m,n,t); // many matricies
array B = randu(m,n); // one matrix
array C = zeros(m,n,t); // destination
// multiply C=A*B for all A, at the same time
gfor (array i, A.dims(2)) {
C(span,span,i) = matmul(A(span,span,i), B);
}
print( A );
print( B );
print( C ); ref: https://stackoverflow.com/questions/13051326/multiplying-hundreds-of-matrices-using-cuda |
Would do 9 matrix multiplies of 3x3 slices |
Many thanks! |
You might need the latest version of |
Could we have this feature in julia: http://arrayfire.org/docs/group__array__mem__slice.htm? And does it allow mapslices into AFArray?
The text was updated successfully, but these errors were encountered: