Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx *Toeplitz(TVec *FirstRow, TVec *FirstCol) const; | Constructs a Toeplitz matrix. |
| 2 | TMtx *Toeplitz(TVec *FirstRow) const; | Constructs a Toeplitz matrix with first row equal to FirstRow vector and first column equal to FirstRow vector, but without the first element. |
Overload 1: TMtx *Toeplitz(TVec *FirstRow, TVec *FirstCol) const;
Constructs a Toeplitz matrix.
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 Matrix::Rows, Matrix::Cols and Matrix::Complex properties of the calling matrix are adjusted automatically. An exception is raised if FirstRow and FirstCol Complex properties do not match.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Vector V1, V2;
Matrix 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]
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtx *Toeplitz(TVec *FirstRow) const;
Constructs a Toeplitz matrix with first row equal to FirstRow vector and first column equal to FirstRow vector, but without the first element.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FirstRow | TVec * |
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Vector V1, V2;
Matrix T;
V1 = {1, 2, 3, 4};
V2 = {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]
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler