# PetscSpacePolynomialSetTensor
Set whether a function space is a space of tensor polynomials (the space is spanned by polynomials whose degree in each variable is bounded by the given order), as opposed to polynomials (the space is spanned by polynomials whose total degree---summing over all variables---is bounded by the given order). 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscSpacePolynomialSetTensor(PetscSpace sp, PetscBool tensor)
```

## Input Parameters

- ***sp     -*** the function space object
- ***tensor -*** `PETSC_TRUE` for a tensor polynomial space, `PETSC_FALSE` for a polynomial space



## Options Database Key

- ***-petscspace_poly_tensor <bool> -*** Whether to use tensor product polynomials in higher dimension





## See Also
 `PetscSpace`, `PetscSpacePolynomialGetTensor()`, `PetscSpaceSetDegree()`, `PetscSpaceSetNumVariables()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/poly/spacepoly.c.html#PetscSpacePolynomialSetTensor">src/dm/dt/space/impls/poly/spacepoly.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/poly/spacepoly.c.html#PetscSpacePolynomialSetTensor_Polynomial">PetscSpacePolynomialSetTensor_Polynomial in src/dm/dt/space/impls/poly/spacepoly.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/space/impls/poly/spacepoly.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)  
