Symmetric Kronecker product in Matlab
Mostrar comentarios más antiguos
Is there any function available to compute the symmetric kronecker product in Matlab? Thanks in advance.
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 16 de Oct. de 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
el 16 de Oct. de 2017
0 votos
2 comentarios
Walter Roberson
el 16 de Oct. de 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
el 16 de Oct. de 2017
Editada: marcelo martines
el 16 de Oct. de 2017
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
