[Scilab-users] Multiplication of hyper-matrix

classic Classic list List threaded Threaded
1 message Options
fujimoto2005 fujimoto2005
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Multiplication of hyper-matrix

Is it possible to do the following code without k loop?

A=rand(5,4,10)
B=rand(5,4,10)
C=zeros(4,4,10)
for k=1:10
        X=matrix(A(:,:,k),5,4)
        Y=matrix(B(:,:,k),5,4)
        C(:,:,k)=Y'*X
end

Best regards,
Masahiro Fujimoto




--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users