TMtx::Toeplitz Method

Overload List

#SignatureDescription
1TMtx *Toeplitz(TVec *FirstRow, TVec *FirstCol);Constructs a Toeplitz matrix.
2TMtx *Toeplitz(TVec *FirstRow);Constructs a Toeplitz matrix.

Overload 1: TMtx *Toeplitz(TVec *FirstRow, TVec *FirstCol);

Constructs a Toeplitz matrix.

#NameTypeDescription
1FirstRowTVec *
2FirstColTVec *
Remarks:

Constructs a Toeplitz matrix with first row equal to FirstRow vector and first column equal to FirstCol vector, but without the first element. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of the calling matrix are adjusted automatically. An exception is raised if FirstRow and FirstCol Complex properties do not match.

Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TVec *V1, *V2;
    TMtx* T;

    CreateIt(V1, V2);
    CreateIt(T);
    V1->SetIt(false, DewArray<double>{1, 2, 3, 4});
    V2->SetIt(false, DewArray<double>{2, 3, 4});
    T->Toeplitz(V1, V2);
    // T becomes:
    //[1  2  3  4]
    //[2  1  2  3]
    //[3  2  1  2]
    //[4  3  2  1]
    FreeIt(T);
    FreeIt(V1, V2);
}
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *Toeplitz(TVec *FirstRow);

Constructs a Toeplitz matrix.

#NameTypeDescription
1FirstRowTVec *
Remarks:

Constructs a Toeplitz matrix with first row equal to FirstRow vector and first column equal to FirstRow vector, but without the first element.

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler