You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Kron Method > Matrix.Kron Method (TVec, TVec)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Kron Method (TVec, TVec)

The Kronecker product between two vectors.

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

Calculates the Kronecker product between Vec1 and Vec2 and stores the result in the calling matrix. The Rows, Cols and Complex properties of calling matrix are set automatically.

var A: Matrix; V1,V2: Vector; begin V1.SetIt(False,[1,2,3]); V2.SetIt(False,[4,5,6]); A.Kron(V1,V2); // A becomes: // [4 5 6] // [8 10 12] // [12 15 18] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!