ply_legVal Function

private function ply_legVal(points, nPoints, maxPolyDegree) result(val)

Evaluate a given set of Legendre polynomials a given set of 1D points.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: points(:)

A given set of 1D points.

integer, intent(in) :: nPoints

The number of points to evaluate the polynomials at.

integer, intent(in) :: maxPolyDegree

The maximal polynomial degree to evaluate for.

Return Value real(kind=rk), allocatable, (:,:)

Function values for for all Legendre polynomials up to degree maxPolyDegree at all given points. Therefore the dimension of this array is (maxPolyDegree+1, nPoints)