Be the first to rate this file! 4 Downloads (last 30 days) File Size: 2.37 KB File ID: #31222

Inversion every 2D slice for arbitrary Multi-dimension array.

by Xiaodong

 

27 Apr 2011

Inverse every 2D slice for an arbitrary N-D array (M).

| Watch this File

File Information
Description

Inverse every 2D matrix slice (the first two dimensions) for multi-dimensional array M:
  M(:,:,p,q,...) * X(:,:,p,q,...) = repmat(eye(m),[1,1,p,q,...]),
where input M is a N-D array (m x m x [p x q x ...]), for all possible m=1,2,3,...
and optional higher dimensions. Output X array has the same size as M.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Multiple matrix multiplications, with array expansion enabled, Multiple same-size linear solver

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
28 Apr 2011 Paolo de Leva

Thank you for your comment on http://www.mathworks.com/matlabcentral/fileexchange/8773-multiple-matrix-multiplications-with-array-expansion-enabled

Your function is quite useful as it is. However, to be compatible with MULTIPROD, and to meet the requirements to be an ARRAYLAB function, it should work with any block array of square matrices, not only with those containing square matrices along their first two dimensions. Thus, it should have a syntax similar to MULTITRANSP (provided together with MULTIPROD).

My best regards.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
inversion Xiaodong 28 Apr 2011 12:15:39
inverse Xiaodong 28 Apr 2011 12:15:39
array Xiaodong 28 Apr 2011 12:15:39
sparse Xiaodong 28 Apr 2011 12:15:39
multinv Xiaodong 28 Apr 2011 12:15:39
nd array Xiaodong 28 Apr 2011 12:15:39
scalar Xiaodong 28 Apr 2011 12:15:39
vector Xiaodong 28 Apr 2011 12:15:39

Contact us at files@mathworks.com