Function pagetensorprod.m, paged tensor product
Version 1.0.0 (3.46 KB) by
Kenneth Johnson
pagetensorprod generalizes tensorprod for paged operation (analogous to pagemtimes).
The operation pagetensorprod(A,B,dimA,dimB,ndimsA,ndimsB) is equivalent to tensorprod(A,B,dimA,dimB,NumDimensionsA=ndimsA) if ndimsA >= ndims(A) and ndimsB >= ndimsB. Otherwise, the tensor product operation is applied elementwise in dimensions ndimsA+[1,2,...] in A and corresponding dimensions ndimsB+[1,2,...] in B, with singleton expansion.
Cite As
Kenneth Johnson (2024). Function pagetensorprod.m, paged tensor product (https://www.mathworks.com/matlabcentral/fileexchange/170346-function-pagetensorprod-m-paged-tensor-product), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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 |