How can I apply arrayfun with 2D matrix inputs?
Mostrar comentarios más antiguos
I want to accelerate the following code.
B=zeros(N,M,M);
for n=1:N
B(n,:,:)=inv(A(n,:,:));
end
where the size of A is N x M x M. Arrayfun doesn't support such a matrix input. So I would like to know the way to accelerate it.
Thank you in advance!
2 comentarios
Andrei Bobrov
el 26 de Jun. de 2017
Editada: Andrei Bobrov
el 26 de Jun. de 2017
It is unlikely that the arrayfun will accelerate.
Daichi
el 26 de Jun. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 行列および配列 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!