Dew MtxVec NET
TVec.Kron Method
Summary
The Kronecker product between two vectors.

Class
TVec

Declaration
Function Kron(Vec1, Vec2: TVec): TVec;

Description
Calculates the Kronecker product between vectors Vec1 and Vec2 and stores the results in calling vector.

Example 1

var a,b,c: TVec; begin CreateIt(a,b,c); try a.SetIt(False,[1,2,3,4]); b.SetIt(False,[1,2,3,4]); c.Kron(a,b); // c = [1,2,3,4, 2,4,6,8, 3,6,9,12, 4,8,12,16] finally FreeIt(a,b,c); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com