numpy.polynomial.legendre.leggrid2d()

numpy.polynomial.legendre.leggrid2d

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

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

This function returns the values:

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

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 an