indicesFromWVGridToFFTWGrid
indices to convert from WV to DFT grid
Declaration
[dftPrimaryIndices, wvPrimaryIndices, dftConjugateIndices, wvConjugateIndices] = indicesFromWVGridToFFTWGrid(Nz,options)
Parameters
Nzlength of the outer dimension (default 1)isHalfComplex(optional) set whether the DFT grid excludes modes iL>Ny/2 [0 1] (default 1)
Returns
dftPrimaryIndicesindices into a DFT matrix, matches wvPrimaryIndiceswvPrimaryIndicesindices into a WV matrix, matches dftPrimaryIndicesdftConjugateIndicesindices into a DFT matrix, matches wvConjugateIndiceswvConjugateIndicesindices into a WV matrix, matches dftConjugateIndices
Discussion
This function returns indices to quickly reformat the memory layout of a data structure on a WV grid to one on a DFT grid.
This function is should generally be faster than the function transformFromWVGridToDFTGrid if you cache these indices.