# PetscDTLegendreEval
evaluate Legendre polynomials at points 
## Synopsis
```
#include "petscdt.h" 
PetscErrorCode PetscDTLegendreEval(PetscInt npoints, const PetscReal *points, PetscInt ndegree, const PetscInt *degrees, PetscReal *B, PetscReal *D, PetscReal *D2)
```
Not Collective


## Input Parameters

- ***npoints -*** number of spatial points to evaluate at
- ***points -*** array of locations to evaluate at
- ***ndegree -*** number of basis degrees to evaluate
- ***degrees -*** sorted array of degrees to evaluate



## Output Parameters

- ***B -*** row-oriented basis evaluation matrix B[point*ndegree + degree] (dimension npoints*ndegrees, allocated by caller) (or NULL)
- ***D -*** row-oriented derivative evaluation matrix (or NULL)
- ***D2 -*** row-oriented second derivative evaluation matrix (or NULL)





## See Also
 `PetscDTGaussQuadrature()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/interface/dt.c.html#PetscDTLegendreEval">src/dm/dt/interface/dt.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dt.c)


[Index of all DT routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
