dots

Multiple matrix-matrix products, or general operations on cartesian tensors
639 Downloads
Updated 3 Nov 2006

No License

dots - multiplications of nd-arrays
A call will look like
[i j k l] = indices;
c = dots([i l],a,[i j k],b,[l j]);
meaning: for all i,l,
c(i,l) = sum_(j,k) a(i,j,k)*b(l,j));
The sum is done on the indices of a and b that are not indices of c

"dots" works in place without use of extra memory: no use of "repmat" or "Tony's trick".

"dots" is fairly fast, thanks to the use of "ddot" (BLAS) and a MEX file.

The functionality is very similar to Paolo de Vela's "multiprod". The ambition is work more economicaly in CPU and RAM terms. Futher, the call syntax is different, but this will obviously be a matter of taste.

Cite As

Philippe Maincon (2024). dots (https://www.mathworks.com/matlabcentral/fileexchange/12859-dots), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polynomials in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Spellling mistakes