You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Vector.Kron Method
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Kron Method

The Kronecker product between two vectors.

Pascal
function Kron(const Vec1: TVec; const Vec2: TVec): TVec; overload;

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

var a,b,c: Vector; begin 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] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!