TMtx *Hankel(TVec *FirstColumn);
Constructs a Hankel matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FirstColumn | TVec * |
Remarks:
Constructs a Hankel matrix whose first column is FirstColumn and whose elements are zero below the first anti-diagonal. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of the calling matrix are adjusted automatically.
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;
void Example()
{
TVec* v;
TMtx* H;
CreateIt(v);
CreateIt(H);
v->SetIt(false, DewArray<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]
FreeIt(H);
FreeIt(v);
}
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler