Symmetric Kronecker product in Matlab
Afficher commentaires plus anciens
Is there any function available to compute the symmetric kronecker product in Matlab? Thanks in advance.
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 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
le 16 Oct 2017
0 votes
2 commentaires
Walter Roberson
le 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
le 16 Oct 2017
Modifié(e) : marcelo martines
le 16 Oct 2017
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
