numpy.polynomial.polynomial.polygrid2d()

numpy.polynomial.polynomial.polygrid2d

numpy.polynomial.polynomial.polygrid2d(x, y, c) [source]

Evaluate a 2-D polynomial on the Cartesian product of x and y.

This function returns the values:

p(a,b) = \sum_{i,j} c_{i,j} * a^i * b^j

where the points (a, b) consist of all pairs formed by taking a from x and b from y. The resulting points form a grid with x in the first dimension a