eye and speye in Kron within matlab

6 次查看(过去 30 天)
ektor
ektor 2020-6-1
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by