Using pagemtimes multiplying from left and right side

4 views (last 30 days)
Morten Nissov
Morten Nissov on 3 May 2021
I have a 3D array I need to multiply on left and right sides by a constant 3x3 matrix, take a cholesky decomposition and multiply it by a random vector, I am trying to avoid for loops. The arrays are P 6x6xN and F 3x6. The equivalent for loop multiplication is
for i=1:length(Pf)
w = chol(Fn*Pf(:,:,i)*Fn')*randn(3,1);
out(:,i) = out(:,i) + w;

Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by