# PetscSpaceEvaluate
Evaluate the basis functions and their derivatives (jet) at each point 
## Synopsis
```
#include "petscfe.h"  
PetscErrorCode PetscSpaceEvaluate(PetscSpace sp, PetscInt npoints, const PetscReal points[], PetscReal B[], PetscReal D[], PetscReal H[])
```

## Input Parameters

- ***sp      -*** The `PetscSpace`
- ***npoints -*** The number of evaluation points, in reference coordinates
- ***points  -*** The point coordinates



## Output Parameters

- ***B -*** The function evaluations in a npoints x nfuncs array
- ***D -*** The derivative evaluations in a npoints x nfuncs x dim array
- ***H -*** The second derivative evaluations in a npoints x nfuncs x dim x dim array





## Note
Above nfuncs is the dimension of the space, and dim is the spatial dimension. The coordinates are given
on the reference cell, not in real space.


## See Also
 `PetscSpace`, `PetscFECreateTabulation()`, `PetscFEGetCellTabulation()`, `PetscSpaceCreate()`

## Level
beginner

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/point/spacepoint.c.html#PetscSpaceEvaluate_Point">PetscSpaceEvaluate_Point in src/dm/dt/space/impls/point/spacepoint.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/poly/spacepoly.c.html#PetscSpaceEvaluate_Polynomial">PetscSpaceEvaluate_Polynomial in src/dm/dt/space/impls/poly/spacepoly.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/ptrimmed/spaceptrimmed.c.html#PetscSpaceEvaluate_Ptrimmed">PetscSpaceEvaluate_Ptrimmed in src/dm/dt/space/impls/ptrimmed/spaceptrimmed.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/subspace/spacesubspace.c.html#PetscSpaceEvaluate_Subspace">PetscSpaceEvaluate_Subspace in src/dm/dt/space/impls/subspace/spacesubspace.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/sum/spacesum.c.html#PetscSpaceEvaluate_Sum">PetscSpaceEvaluate_Sum in src/dm/dt/space/impls/sum/spacesum.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/tensor/spacetensor.c.html#PetscSpaceEvaluate_Tensor">PetscSpaceEvaluate_Tensor in src/dm/dt/space/impls/tensor/spacetensor.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/wxy/spacewxy.c.html#PetscSpaceEvaluate_WXY">PetscSpaceEvaluate_WXY in src/dm/dt/space/impls/wxy/spacewxy.c</A><BR>


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


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