当前位置: 首页>>代码示例>>C#>>正文


C# fftw_direction类代码示例

本文整理汇总了C#中fftw_direction的典型用法代码示例。如果您正苦于以下问题:C# fftw_direction类的具体用法?C# fftw_direction怎么用?C# fftw_direction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


fftw_direction类属于命名空间,在下文中一共展示了fftw_direction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: dft_1d

 /// <summary>
 /// Creates plan..
 /// </summary>
 /// <param name="fftType">Type of fft.</param>
 /// <param name="n">The n.</param>
 /// <param name="input">The input.</param>
 /// <param name="output">The output.</param>
 /// <param name="direction">The direction.</param>
 /// <param name="flags">The flags.</param>
 /// <returns></returns>
 public static fftwf_plan dft_1d(eFFTType fftType, int n, IntPtr input, IntPtr output, fftw_direction direction, fftw_flags flags)
 {
     fftwf_plan p = new fftwf_plan();
     if (fftType == eFFTType.Complex2Complex)
         p._handle = fftwf.dft_1d(n, input, output, direction, flags);
     else if (fftType == eFFTType.Real2Complex)
         p._handle = fftwf.dft_r2c_1d(n, input, output, flags);
     else if (fftType == eFFTType.Complex2Real)
         p._handle = fftwf.dft_c2r_1d(n, input, output, flags);
     p.Input = input;
     p.Output = output;
     return p;
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:23,代码来源:Managed.cs

示例2: FFT

 void FFT(int N, float[] dataIn, float[] dataOut, fftw_direction direction)
 {
     var NbyN = N * N;
     var bufFftIn = fftwf.malloc(8 * NbyN);
     var bufFftOut = fftwf.malloc(8 * NbyN);
     try {
         var plan = fftwf.dft_2d(N, N, bufFftIn, bufFftOut, direction, fftw_flags.Estimate);
         Marshal.Copy(dataIn, 0, bufFftIn, dataIn.Length);
         fftwf.execute(plan);
         Marshal.Copy(bufFftOut, dataOut, 0, dataOut.Length);
     } finally {
         fftwf.free(bufFftIn);
         fftwf.free(bufFftOut);
     }
 }
开发者ID:nobnak,项目名称:FftwUnity,代码行数:15,代码来源:FFTImage.cs

示例3: dft

        public static extern IntPtr dft(int rank, int[] n, IntPtr input, IntPtr output, 
			fftw_direction direction, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:2,代码来源:Interop.cs

示例4: dft_c2r_3d

 public static fftw_plan dft_c2r_3d(int nx, int ny, int nz, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
 {
     fftw_plan p = new fftw_plan();
     p.handle = fftw.dft_c2r_3d(nx, ny, nz, input.Handle, output.Handle, flags);
     return p;
 }
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:6,代码来源:Managed.cs

示例5: dft_c2r

 public static fftw_plan dft_c2r(int rank, int[] n, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
 {
     fftw_plan p = new fftw_plan();
     p.handle = fftw.dft_c2r(rank, n, input.Handle, output.Handle, flags);
     return p;
 }
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:6,代码来源:Managed.cs

示例6: dft_1d

 //Complex<->Complex transforms
 public static fftw_plan dft_1d(int n, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
 {
     fftw_plan p = new fftw_plan();
     p.handle = fftw.dft_1d(n, input.Handle, output.Handle, direction,flags);
     return p;
 }
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:7,代码来源:Managed.cs

示例7: dft_c2r_3d

        public static fftw_plan dft_c2r_3d(int nx, int ny, int nz, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
        {
            FFTW_Lock.WaitOne();
            fftw_plan p = new fftw_plan();
            p.handle = fftw.dft_c2r_3d(nx, ny, nz, input.Handle, output.Handle, flags);
            FFTW_Lock.ReleaseMutex();

            return p;
        }
开发者ID:aemerman,项目名称:Nevis14,代码行数:9,代码来源:Managed.cs

示例8: dft_c2r

        public static fftw_plan dft_c2r(int rank, int[] n, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
        {
            FFTW_Lock.WaitOne();
            fftw_plan p = new fftw_plan();
            p.handle = fftw.dft_c2r(rank, n, input.Handle, output.Handle, flags);
            FFTW_Lock.ReleaseMutex();

            return p;
        }
开发者ID:aemerman,项目名称:Nevis14,代码行数:9,代码来源:Managed.cs

示例9: many_dft

 public static extern IntPtr many_dft(int rank, int[] n, int howmany,
                           IntPtr input, int[] inembed,
                           int istride, int idist,
                           IntPtr output, int[] onembed,
                           int ostride, int odist,
                           fftw_direction sign, fftw_flags flags);
开发者ID:JustasB,项目名称:cudafy,代码行数:6,代码来源:Interop.cs

示例10: dft_2d

		public static fftw_plan dft_2d(int nx, int ny, fftw_complexarray input, fftw_complexarray output, fftw_direction direction, fftw_flags flags)
		{
            FFTW_Semaphore.WaitOne();
            fftw_plan p = new fftw_plan();
			p.handle = fftw.dft_2d(nx, ny, input.Handle, output.Handle, direction,flags);
            FFTW_Semaphore.Release();
            return p;
		}
开发者ID:MengdiGuo,项目名称:PachydermAcoustic_Rhinoceros,代码行数:8,代码来源:FFTW_Managed.cs

示例11: dft_many

 public static fftwf_plan dft_many(eFFTType fftType, int rank, int[] n, int batch,
                           IntPtr input, int[] inembed,
                           int istride, int idist,
                           IntPtr output, int[] onembed,
                           int ostride, int odist,
                           fftw_direction sign, fftw_flags flags)
 {
     fftwf_plan p = new fftwf_plan();
     if (fftType == eFFTType.Complex2Complex)
         p._handle = fftwf.many_dft(rank, n, batch, input, inembed, istride, idist, output, onembed, ostride, odist, sign, flags);
     else if (fftType == eFFTType.Real2Complex)
         p._handle = fftwf.many_dft_r2c(rank, n, batch, input, inembed, istride, idist, output, onembed, ostride, odist, flags);
     else if (fftType == eFFTType.Complex2Real)
         p._handle = fftwf.many_dft_c2r(rank, n, batch, input, inembed, istride, idist, output, onembed, ostride, odist, flags);
     p.Input = input;
     p.Output = output;
     return p;
 }
开发者ID:constructor-igor,项目名称:cudafy,代码行数:18,代码来源:Managed.cs

示例12: dft_c2r_2d

 public static fftwf_plan dft_c2r_2d(int nx, int ny, fftwf_complexarray input, fftwf_complexarray output, fftw_direction direction, fftw_flags flags)
 {
     fftwf_plan p = new fftwf_plan();
     p.handle = fftwf.dft_c2r_2d(nx, ny, input.Handle, output.Handle, (uint)flags);
     return p;
 }
开发者ID:spooker,项目名称:music-denfitication,代码行数:6,代码来源:Managed.cs

示例13: dft

 public static fftwf_plan dft(int rank, int[] n, fftwf_complexarray input, fftwf_complexarray output, fftw_direction direction, fftw_flags flags)
 {
     fftwf_plan p = new fftwf_plan();
     p.handle = fftwf.dft(rank, n, input.Handle, output.Handle, (int)direction,(uint)flags);
     return p;
 }
开发者ID:spooker,项目名称:music-denfitication,代码行数:6,代码来源:Managed.cs

示例14: dft_1d

        public static extern IntPtr dft_1d(int n, IntPtr input, IntPtr output, 
			fftw_direction direction, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:2,代码来源:Interop.cs

示例15: dft_1d

        //Complex<->Complex transforms
        public static fftwf_plan dft_1d(int n, fftwf_complexarray input, fftwf_complexarray output, fftw_direction direction, fftw_flags flags)
        {
            FFTW_Lock.WaitOne();
            fftwf_plan p = new fftwf_plan();
            p.handle = fftwf.dft_1d(n, input.Handle, output.Handle, direction, flags);
            FFTW_Lock.ReleaseMutex();

            return p;
        }
开发者ID:aemerman,项目名称:Nevis14,代码行数:10,代码来源:Managed.cs


注:本文中的fftw_direction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。