TMtx.Hankel Method

TMtx Hankel(TVec FirstColumn)

Constructs a Hankel matrix.

#NameTypeDescription
1FirstColumnTVecsource TVec

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

Remarks:

Constructs a Hankel matrix whose first column is FirstColumn and whose elements are zero below the first anti-diagonal. The Dew.Math.TMtx.Rows, Dew.Math.TMtx.Cols and Dew.Math.TMtxVec.Complex properties of the calling matrix are adjusted automatically.

Examples
TVec v;
TMtx H;
MtxVec.CreateIt(out v);
MtxVec.CreateIt(out H);
try
    {
        v.SetIt(false,new double[] {1,2,3,4});
        H.Hankel(v);
        // H becomes:
        //[1  2  3  4]
        //[2  3  4  0]
        //[3  4  0  0]
        //[4  0  0  0]
    }
finally
    {
        MtxVec.FreeIt(ref H);
        MtxVec.FreeIt(ref v);
    }