本文整理汇总了C#中fftw_flags类的典型用法代码示例。如果您正苦于以下问题:C# fftw_flags类的具体用法?C# fftw_flags怎么用?C# fftw_flags使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
fftw_flags类属于命名空间,在下文中一共展示了fftw_flags类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: dft_r2c_3d
public static extern IntPtr dft_r2c_3d(int nx, int ny, int nz, IntPtr input, IntPtr output, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:1,代码来源:Interop.cs
示例3: r2r_1d
public static extern IntPtr r2r_1d(int n, IntPtr input, IntPtr output, fftw_kind kind, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:1,代码来源:Interop.cs
示例4: dft_3d
public static extern IntPtr dft_3d(int nx, int ny, int nz, IntPtr input, IntPtr output,
fftw_direction direction, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:2,代码来源:Interop.cs
示例5: dft_r2c
public static extern IntPtr dft_r2c(int rank, int[] n, IntPtr input, IntPtr output, fftw_flags flags);
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:1,代码来源:Interop.cs
示例6: r2r_1d
//Real<->Real
public static fftw_plan r2r_1d(int n, fftw_complexarray input, fftw_complexarray output, fftw_kind kind, fftw_flags flags)
{
fftw_plan p = new fftw_plan();
p.handle = fftw.r2r_1d(n, input.Handle, output.Handle, kind, flags);
return p;
}
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:7,代码来源:Managed.cs
示例7: 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
示例8: r2r_1d
//Real<->Real
public static fftwf_plan r2r_1d(int n, fftwf_complexarray input, fftwf_complexarray output, fftw_kind kind, fftw_flags flags)
{
FFTW_Lock.WaitOne();
fftwf_plan p = new fftwf_plan();
p.handle = fftwf.r2r_1d(n, input.Handle, output.Handle, kind, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:10,代码来源:Managed.cs
示例9: dft_c2r_1d
//Complex->Real
public static fftw_plan dft_c2r_1d(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_1d(n, input.Handle, output.Handle, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:10,代码来源:Managed.cs
示例10: dft_3d
public static fftwf_plan dft_3d(int nx, int ny, int nz, 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_3d(nx, ny, nz, input.Handle, output.Handle, direction, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:9,代码来源:Managed.cs
示例11: dft_r2c
public static fftwf_plan dft_r2c(int rank, int[] n, fftwf_complexarray input, fftwf_complexarray output, fftw_flags flags)
{
FFTW_Lock.WaitOne();
fftwf_plan p = new fftwf_plan();
p.handle = fftwf.dft_r2c(rank, n, input.Handle, output.Handle, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:9,代码来源:Managed.cs
示例12: many_dft_c2r
public static extern IntPtr many_dft_c2r(int rank, int[] n, int howmany,
IntPtr input, int[] inembed,
int istride, int idist,
IntPtr output, int[] onembed,
int ostride, int odist, fftw_flags flags);
开发者ID:JustasB,项目名称:cudafy,代码行数:5,代码来源:Interop.cs
示例13: 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
示例14: 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
示例15: dft_r2c_3d
public static fftw_plan dft_r2c_3d(int nx, int ny, int nz, fftw_complexarray input, fftw_complexarray output, fftw_flags flags)
{
fftw_plan p = new fftw_plan();
p.handle = fftw.dft_r2c_3d(nx, ny, nz, input.Handle, output.Handle, flags);
return p;
}
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:6,代码来源:Managed.cs
示例16: dft_r2c_2d
public static fftw_plan dft_r2c_2d(int nx, int ny, fftw_complexarray input, fftw_complexarray output, fftw_flags flags)
{
FFTW_Lock.WaitOne();
fftw_plan p = new fftw_plan();
p.handle = fftw.dft_r2c_2d(nx, ny, input.Handle, output.Handle, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:9,代码来源:Managed.cs
示例17: r2r
public static fftw_plan r2r(int rank, int[] n, fftw_complexarray input, fftw_complexarray output,
fftw_kind[] kind, fftw_flags flags)
{
fftw_plan p = new fftw_plan();
p.handle = fftw.r2r(rank, n, input.Handle, output.Handle,
kind, flags);
return p;
}
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:8,代码来源:Managed.cs
示例18: r2r
public static fftw_plan r2r(int rank, int[] n, fftw_complexarray input, fftw_complexarray output,
fftw_kind[] kind, fftw_flags flags)
{
FFTW_Lock.WaitOne();
fftw_plan p = new fftw_plan();
p.handle = fftw.r2r(rank, n, input.Handle, output.Handle,
kind, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:11,代码来源:Managed.cs
示例19: r2r_3d
public static fftw_plan r2r_3d(int nx, int ny, int nz, fftw_complexarray input, fftw_complexarray output,
fftw_kind kindx, fftw_kind kindy, fftw_kind kindz, fftw_flags flags)
{
fftw_plan p = new fftw_plan();
p.handle = fftw.r2r_3d(nx, ny, nz, input.Handle, output.Handle,
kindx, kindy, kindz, flags);
return p;
}
开发者ID:nobnak,项目名称:FftOceanUnity,代码行数:8,代码来源:Managed.cs
示例20: r2r_3d
public static fftw_plan r2r_3d(int nx, int ny, int nz, fftw_complexarray input, fftw_complexarray output,
fftw_kind kindx, fftw_kind kindy, fftw_kind kindz, fftw_flags flags)
{
FFTW_Lock.WaitOne();
fftw_plan p = new fftw_plan();
p.handle = fftw.r2r_3d(nx, ny, nz, input.Handle, output.Handle,
kindx, kindy, kindz, flags);
FFTW_Lock.ReleaseMutex();
return p;
}
开发者ID:aemerman,项目名称:Nevis14,代码行数:11,代码来源:Managed.cs
注:本文中的fftw_flags类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论