<< cumsum matrixoperations max >>

Scilabヘルプ >> Elementary Functions > matrixoperations > kron

kron

クロネッカー積 (.*.)

呼び出し手順

kron(A,B)
A.*.B

説明

kron(A,B) または A.*.B は 2つの行列A および Bのクロネッカーテンソル積を返します. 結果の行列は以下のようなブロック形式となります:

Am x n 行列で Bp x q 行列の場合, A.*.B(m*p) x (n*q) 行列となります.

A および B は疎行列とすることも できます.

A = [1,2;3,4];
kron(A,A)
A.*.A
sparse(A).*.sparse(A)
A(1,1) = %i;
kron(A,A)

// With hypermatrices
// ------------------
b = matrix(1:24, [4 3 2]);

// row .*. hypermat
clc
a = 1:2, b
a.*.b

// hypermat .*. row
clc
b,a
b .*. a

// column .*. hypermat
clc
a = [1;2], b
a.*.b

// matrix .*. hypermat
clc
a = [-1 -2; 2 1], b
a.*.b

// hypermat .*. hypermat
clc
a = matrix([-1,-2, 1 2], [1 2 2]), b
a.*.b

履歴

バージョン記述
5.5.1

Extension to hypermatrices


Report an issue
<< cumsum matrixoperations max >>