Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Русский - 日本語
Ajuda do Scilab >> Funções Elementares > Matrix operations > kron

kron

produto de Kronecker (.*.)

Seqüência de Chamamento

kron(A,B)
A.*.B

Descrição

kron(A,B) ou A.*.B retorna o produto tensorial de Kronecker entre duas matrizes ou hypermatrizes A e B. A matriz resultante tem a seguinte forma de blocos:

Se A é uma matriz m x n e B é uma hypermatriz p x q x r , então A.*.B é uma hypermatriz (m*p) x (n*q) x (1*r) .

A e B podem ser matrizes esparsas, mas o produto de Kronecker não é definida entre uma matriz e uma hipermatriz.

Exemplos

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

// com hypermatrizes
// -----------------
b = hypermat([4 3 2], 1:24);

// 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 = hypermat([1 2 2],[-1,-2, 1 2]), b
a.*.b

Histórico

VersãoDescrição
5.5.1

Extensão ao hypermatrizes

Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:34:40 CEST 2016