Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx Toeplitz(TVec FirstRow) | Constructs a Toeplitz matrix. |
| 2 | TMtx Toeplitz(TVec FirstRow, TVec FirstCol) | Constructs a Toeplitz matrix. |
Overload 1: TMtx Toeplitz(TVec FirstRow)
Constructs a Toeplitz matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FirstRow | TVec | source TVec |
Result: stored in self (calling object), returns self for chaining
Remarks:
Constructs a Toeplitz matrix with first row equal to FirstRow vector and first column equal to FirstRow vector, but without the first element.
Overload 2: TMtx Toeplitz(TVec FirstRow, TVec FirstCol)
Constructs a Toeplitz matrix.
Result: stored in self (calling object), returns self for chaining
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 Dew.Math.TMtx.Rows, Dew.Math.TMtx.Cols and Dew.Math.TMtxVec.Complex properties of the calling matrix are adjusted automatically. An exception is raised if FirstRow and FirstCol Complex properties do not match.
Examples
TVec V1;
TVec V2;
TMtx T;
MtxVec.CreateIt(out V1, out V2);
MtxVec.CreateIt(out T);
try
{
V1.SetIt(false,new double[] {1,2,3,4});
V2.SetIt(false,new 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]
}
finally
{
MtxVec.FreeIt(ref T);
MtxVec.FreeIt(ref V1, ref V2);
}