Cumulative Matrix Multiplication

This function takes a matrix A(n,n,m) and calculates the cumulative matrix product B(n,n)
238 Descargas
Actualizado 28 feb 2014

Ver licencia

This C function does a cumulative matrix multiplication of square 2D complex matrices. The matrices need to be put in the function as a 3D matrix of size n x n x m where n is the rank of the square matrices and m is the number of matrices.
I could make a version for real matrices too. If you need this message me.
This function should be compiled using the Mex function of Matlab.

The code is faster when the rank of the matrix is hard-coded in the C function. I have done this for ranks 2, 3 and 4.

% Example of use in Matlab
n = 3 % rank of the square matrices;
m = 1000 % number of matrices;
B = rand(n,n,m); % example input matrices
A = cMn(B, n); % A is a n x n matrix

Citar como

Nicolas Ayotte (2024). Cumulative Matrix Multiplication (https://www.mathworks.com/matlabcentral/fileexchange/45650-cumulative-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 Linear Algebra 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.2.0.0

This is C code not C++.

1.1.0.0

Description update for clarity.

1.0.0.0