Code covered by the BSD License  

Highlights from
Vectorized Transpose Matrix

Be the first to rate this file! 1 Download (last 30 days) File Size: 1.35 KB File ID: #26781

Vectorized Transpose Matrix

by Zachary Danziger

 

24 Feb 2010

Creates an orthogonal permutation matrix for tensor and linear algebra manipulations.

| Watch this File

File Information
Description

The vectorized transpose matrix, Tmn, is the matrix that permutes the vectorization of an m#n matrix A into its transpose vectorization. For example, if the vectorization of A is defined as vec(A), or A(:), then Tmn*vec(A) = vec(A').

EXAMPLE
The vectorized transpose matrix can be used to reverse the order of arguments to the otherwise non-commutative Kronecker product.

>> m=2;n=3;p=4;q=2;
>> A = rand(m,n); B = rand(p,q);
>> isequal(TvecMat(p,m)*kron(A,B)*TvecMat(n,q),kron(B,A))
ans =
     1

For other useful properties of the vectorized transpose matrix, see:
http://www.ee.ic.ac.uk/hp/staff/dmb/matrix/special.html#VecTranspose

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
calculus, linear algebra, mathematics, matrix, tensor
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us