:orphan:
# MatCreateSeqUSFFT
Creates a matrix object that provides sequential USFFT via the external package FFTW 
## Synopsis
```
#include "petscmat.h" 
#include "petscdmda.h"  
PetscErrorCode  MatCreateSeqUSFFT(Vec sampleCoords, DMDA freqDA, Mat *A)
```
Collective


## Input Parameter

- ***da -*** geometry of the domain encoded by a `DMDA`



## Output Parameter

- ***A  -*** the matrix



## Options Database Key

- ***-mat_usfft_plannerflags -*** set the FFTW planner flags





## See Also
 `Mat`, `Vec`, `DMDA`, `DM`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/usfft/matusfft.c.html#MatCreateSeqUSFFT">src/dm/impls/da/usfft/matusfft.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/usfft/matusfft.c)


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