Symmetric Kronecker product in Matlab
Mostra commenti meno recenti
Is there any function available to compute the symmetric kronecker product in Matlab? Thanks in advance.
Risposta accettata
Più risposte (2)
Walter Roberson
il 16 Ott 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
il 16 Ott 2017
0 voti
2 Commenti
Walter Roberson
il 16 Ott 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
il 16 Ott 2017
Modificato: marcelo martines
il 16 Ott 2017
Categorie
Scopri di più su Linear Algebra in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
