eye and speye in Kron within matlab

5 visualizaciones (últimos 30 días)
ektor
ektor el 1 de Jun. de 2020
Dear all,
I want to ask if
B=[1 2; 3 4];
A=kron(eye(2),B);
and
B=[1 2; 3 4];
A=kron(speye(2),B);
are the same.
It seems that the latter is way faster than the former.

Respuestas (0)

Categorías

Más información sobre Performance and Memory en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by