Cumulative 2x2 Complex Matrix Multiplication

This takes a 2x2xm matrix and calculates the cumulative matrix multiplication along the 3rd diim.
204 Descargas
Actualizado 25 feb 2014

Ver licencia

This function calculates the cumulative matrix multiplication of input complex matrices A(2,2,m)
This function should be compiled using the Maltab Mex function.
m = 1000; % number of matrices
A = rand(2,2,m) + 1i * rand(2,2,m); % Example matrix;
B = cM(A); % B is a 2x2 matrix

This function is up to 180 times faster that the equivalent for loop.

B = eye(2);
for ii = 1 : 1000
B = B * A(:,:,ii);
end

Citar como

Nicolas Ayotte (2024). Cumulative 2x2 Complex Matrix Multiplication (https://www.mathworks.com/matlabcentral/fileexchange/45651-cumulative-2x2-complex-matrix-multiplication), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

Update the example of function use to a correct one.

1.0.0.0