TMtx *Hankel(TVec *FirstColumn) const;
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 Matrix::Rows, Matrix::Cols and Matrix::Complex properties of the calling matrix are adjusted automatically.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Vector v;
Matrix 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]
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler