How can I apply arrayfun with 2D matrix inputs?
显示 更早的评论
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 个评论
Andrei Bobrov
2017-6-26
编辑:Andrei Bobrov
2017-6-26
It is unlikely that the arrayfun will accelerate.
Daichi
2017-6-26
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 行列および配列 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!