Symmetric Kronecker product in Matlab
Show older comments
Is there any function available to compute the symmetric kronecker product in Matlab? Thanks in advance.
Accepted Answer
More Answers (2)
Walter Roberson
on 16 Oct 2017
syms a b c
kron([a, b, c], [c/(b+1), a])
ans =
[ (a*c)/(b + 1), a^2, (b*c)/(b + 1), a*b, c^2/(b + 1), a*c]
Looks okay?
marcelo martines
on 16 Oct 2017
0 votes
2 Comments
Walter Roberson
on 16 Oct 2017
The definition is not quite right. It says U element of R^(n*(n+1))x(n^2) . If we substitute in n = 3, then U would have to be an element of R^(3*4)x(3x3) = R^(12)x(9) . However, the example output is 6 x 9 and the description of how the entries are labeled cannot support the 12 x 9 possibility.
The description only makes sense if R^(n*(n+1)/2)x(n^2)
"It's difficult to me generalize the matrix "U" for any sized square matrix."
U will only be square when n = 1.
I will need to think more about good ways to fill in such a matrix.
marcelo martines
on 16 Oct 2017
Edited: marcelo martines
on 16 Oct 2017
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!