Matrix.VanderMonde Method

function VanderMonde(ACols: Integer; Vec: TVec): TMtx;

Construct VanderMonde matrix.

#NameTypeDescription
1AColsInteger
2VecTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

Constructs a VanderMonde matrix with Vec.Matrix.Length rows and ACols columns. The second to last column of the VanderMonde matrix is Vec:

M=(vec[0]ACols1vec[0]2vec[0]vec[0]1vec[n1]ACols1vec[n1]2vec[n1]vec[n1]1)M=\begin{pmatrix} \text{vec}[0]^{ACols-1} & \dots & \text{vec}[0]^{2} & \text{vec}[0] & \text{vec}[0] & 1 \\ \dots & \dots & \dots & \dots & \dots & \dots \\ \text{vec}[n-1]^{ACols-1} & \dots & \text{vec}[n-1]^{2} & \text{vec}[n-1] & \text{vec}[n-1] & 1 \\ \end{pmatrix}