Vector.Kron Method

TVec Kron(TVec Vec1, TVec Vec2)

The Kronecker product between two vectors.

#NameTypeDescription
1Vec1TVecsource TVec
2Vec2TVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Examples
Vector a;
Vector b;
Vector c;
a.SetIt(false,new double[] {1,2,3,4});
b.SetIt(false,new double[] {1,2,3,4});
c.Kron(a,b);  // c = new double[] {1,2,3,4, 2,4,6,8, 3,6,9,12, 4,8,12,16}