dots
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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Spellling mistakes |