Template Class Vandermonde

Class Documentation

template<int N>
class Vandermonde

Class that computes rows of the Vandermonde matrix and related matrices; the dot product of these row vectors with the polynomial coefficient vectors evaluates the polynomial (or computes a derivative).

Public Types

typedef Eigen::Matrix<double, 1, N> RowVector

Public Static Functions

static RowVector eval(double x)

Return a row vector that product with a polynomial coefficient vector[ evaluates the polynomial at x.

static RowVector differentiate1(double x)

Return a row vector whose product with a polynomial coefficient vector evaluates the first derivative at x.

static RowVector differentiate2(double x)

Return a row vector whose product with a polynomial coefficient vector evaluates the second derivative at x.

static RowVector moment(double x0, double x1, int m = 0)

Return a row vector whose product with a polynomial coefficient vector computes the integral of p(x) x^m dx from x0 to x1