# PetscDualSpaceLagrangeSetTensor
Set the tensor nature of the dual space 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceLagrangeSetTensor(PetscDualSpace sp, PetscBool tensor)
```
Not collective


## Input Parameters

- ***sp -*** The `PetscDualSpace`
- ***tensor -*** Whether the dual space has tensor layout (vs. simplicial)





## See Also
 `PetscDualSpace`, `PetscDualSpaceLagrangeGetTensor()`, `PetscDualSpaceCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceLagrangeSetTensor">src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceLagrangeSetTensor_Lagrange">PetscDualSpaceLagrangeSetTensor_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>


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


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