# MatCreateSeqCUFFT
Creates a matrix object that provides `MATSEQCUFFT` via the NVIDIA package CuFFT 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatCreateSeqCUFFT(MPI_Comm comm, PetscInt ndim, const PetscInt dim[], Mat *A)
```
Collective


## Input Parameters

- ***comm -*** MPI communicator, set to `PETSC_COMM_SELF`
- ***ndim -*** the ndim-dimensional transform
- ***dim  -*** array of size ndim, dim[i] contains the vector length in the i-dimension



## Output Parameter

- ***A -*** the matrix



## Options Database Keys

- ***-mat_cufft_plannerflags -*** set CUFFT planner flags





## See Also
 `MATSEQCUFFT`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/cufft/cufft.cu.html#MatCreateSeqCUFFT">src/mat/impls/cufft/cufft.cu</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/cufft/cufft.cu)


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