亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? rfft3.cpp

?? The Spectral Toolkit is a C++ spectral transform library written by Rodney James and Chuck Panaccion
?? CPP
字號(hào):
//// spectral toolkit // copyright (c) 2005 university corporation for atmospheric research// licensed under the gnu general public license//#include "rfft3.h"#include "transpose.h"#include "alloc.h"#include "alias.h"#include "decompose.h"using namespace spectral;/// Multithreaded constructor./// \param nx first dimension of transform/// \param ny second dimension of transform/// \param nz third dimension of transform/// \param nt number of threads used in transform/// \throws bad_parameter if nx<2, ny<2, nz<2  or nt<1 rfft3::rfft3(int nx,int ny,int nz,int nt){    if((nx<2)||(ny<2)||(nz<2)||(nt<1))        throw bad_parameter();    threads=nt;    t=new thread*[threads];    C=alloc<complex>(nx,nz/2+1,ny);    g=new group(threads);    for(int i=0;i<threads;i++)        t[i]=new thread(nx,ny,nz,this,i);}/// Single thread constructor./// \param nx first dimension of transform/// \param ny second dimension of transform/// \param nz third dimension of transform/// \throws bad_parameter if nx<2, ny<2 or nz<1 rfft3::rfft3(int nx,int ny,int nz){    if((nx<2)||(ny<2)||(nz<2))        throw bad_parameter();    threads=1;    g=0;    C=alloc<complex>(nx,nz/2+1,ny);    t=new rfft3::thread*[1];    t[0]=new rfft3::thread(nx,ny,nz,this,0);}/// Destructor for 3-d real FFT.rfft3::~rfft3(){    if(g)        delete g;    dealloc<complex>(C);    for(int i=0;i<threads;i++)        delete t[i];    delete [] t;}/// Multiple instance forward transform./// \param a 4-d input array of size [m][n1][n2][n3]/// \param b 4-d output array of size [m][n3/2+1][n2][n1]/// \param m number of sequences to transformvoid rfft3::analysis(real ****a,complex ****b,int m){    if(m<1)        throw bad_parameter();    int i;    for(i=0;i<threads;i++)        t[i]->analysis(a,b,m);    for(i=0;i<threads;i++)        t[i]->wait();}/// Multiple instance backward transform./// \param b 4-d input array of size [m][n3/2+1][n2][n1]/// \param a 4-d output array of size [m][n1][n2][n3]/// \param m number of sequences to transformvoid rfft3::synthesis(complex ****b,real ****a,int m){    if(m<1)        throw bad_parameter();    int i;    for(i=0;i<threads;i++)        t[i]->synthesis(b,a,m);    for(i=0;i<threads;i++)        t[i]->wait();}/// Forward transform.  Computes the 3-d real symmetric FFT of a real 3-d array/// \f[ \hat{a}_{k_3,k_2,k_1} = \frac{1}{N_1 N_2 N_3} \sum_{n_1=0}^{N_1-1} /// \sum_{n_2=0}^{N_2-1} \sum_{n_3=0}^{N_3-1} a_{n_1,n_2,n_3} /// e^{-2 \pi i k_1 n_1/N_1} e^{-2 \pi i k_2 n_2/N_2} e^{-2 \pi i k_3 n_3/N_3} \f]/// where the input array is a[N1][N2][N3] and the output array is normalized and transposed /// as b[N3/2+1][N2][N1].  The input and output arrays can reference the same memory (using /// the alias function template) or can be distinct.  In the case that the arrays are accessing/// the same memory, ensure that the length array is at least sizeof(real)*nx*ny*2(nz/2+1)./// Note that the input array is used in the computation and is overwritten.  /// \param a 3-d input array in physical space/// \param b 3-d output array containing Fourier coefficients in transposed ordervoid rfft3::analysis(real ***a,complex ***b){    analysis(&a,&b,1);}/// Backward transform.  Computes the 3-d inverse FFT of the real symmetric 3-d array/// of complex spectral coefficients/// \f[ a_{n_1,n_2,n_3} = \sum_{k_1=0}^{N_1-1} \sum_{k_2=0}^{N_2-1} \sum_{k_3=0}^{N_3-1} /// \hat{a}_{k_3,k_2,k_1} e^{2 \pi i k_1 n_1/N_1} e^{2 \pi i k_2 n_2/N_2} e^{2 \pi i k_3 n_3/N_3} \f]/// where the input array is b[N3/2+1][N2][N1] and the output array is a[N1][N2][N3],/// using the symmetry relation \f$\hat{a}_{k_3,k_2,k_1} = \overline{\hat{a}}_{N_3-k_3,N_2-k_2,N_1-k_1} \f$./// The input and output arrays may refer to the same location./// Note that the input array is used in the computation and is overwritten./// \param a 3-d input array containing Fourier coefficients in transposed order/// \param b 3-d output array in physical spacevoid rfft3::synthesis(complex ***b,real ***a){    synthesis(&b,&a,1);}/// Internal thread object constructor./// \param nx first dimension of transform/// \param ny second dimension of transform/// \param nz second dimension of transform/// \param parent pointer to rfft3 object/// \param index thread index which is from 0 to size(G)-1rfft3::thread::thread(int nx,int ny,int nz,rfft3 *parent,int index){    n1=nx;    n2=ny;    N3=nz;    n3=N3/2+1;    Parent=parent;    C=Parent->C;;    g=Parent->g;    FFT1=new cfft(n1);    FFT2=new rfft2(n2,N3);    fac=1.0/(real)n1;    int nt=max(size(g),1);    decompose(n1,nt,index,m1,p1);    decompose(n3*n2,nt,index,m32,p32);}/// Internal thread destructor.rfft3::thread::~thread(){    delete FFT2;    delete FFT1;}/// Internal thread join.void rfft3::thread::wait(){    join();}/// Internal thread analysis driver.void rfft3::thread::analysis(real ****a,complex ****b,int m){    A=a;    B=b;    M=m;    Method=ANALYSIS;    if(g)        spawn();    else        start();}/// Internal thread synthesis driver.void rfft3::thread::synthesis(complex ****b,real ****a,int m){    A=a;    B=b;    M=m;    Method=SYNTHESIS;    if(g)        spawn();    else        start();}/// Internal thread object start method that executes upon thread spawn.void rfft3::thread::start(){    complex ***b=alias<complex,complex>(M,n2*n3,n1,B);    complex **c=alias<complex,complex>(n1,n2*n3,C);    switch(Method)    {        case ANALYSIS:            for(int i=0;i<M;i++)            {                FFT2->analysis(A[i],C,m1,p1);                sync(g);                transpose(c,b[i],m1,p1,n2*n3,fac);                sync(g);                FFT1->analysis(b[i],m32,p32);            }            break;        case SYNTHESIS:            for(int i=0;i<M;i++)            {                FFT1->synthesis(b[i],m32,p32);                sync(g);                transpose(b[i],c,m32,p32,n1);                sync(g);                FFT2->synthesis(C,A[i],m1,p1);            }            break;    }    dealias<complex>(b);    dealias<complex>(c);}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线观看网站| 亚洲综合视频在线| 在线免费不卡电影| 激情五月激情综合网| 国产精品家庭影院| 精品国精品国产尤物美女| 色狠狠一区二区三区香蕉| 九一九一国产精品| 香蕉久久一区二区不卡无毒影院 | 日韩视频免费观看高清完整版| 成人三级伦理片| 天堂影院一区二区| 中文字幕制服丝袜成人av| 日韩一区二区在线观看视频| 色婷婷综合在线| 国产999精品久久| 日av在线不卡| 五月天精品一区二区三区| 国产精品美女久久久久久久| www成人在线观看| 3751色影院一区二区三区| 一本久道久久综合中文字幕| 国产91精品精华液一区二区三区| 美女一区二区三区| 亚洲va国产天堂va久久en| 亚洲欧美一区二区三区国产精品| 国产欧美一区二区精品性色| 日韩欧美国产麻豆| 欧美成人国产一区二区| 欧美日韩不卡视频| 欧美日韩一二区| 欧美影视一区在线| 欧美日韩一区视频| 色久优优欧美色久优优| 91色porny| 99精品国产热久久91蜜凸| 成人激情校园春色| jlzzjlzz亚洲日本少妇| a美女胸又www黄视频久久| 国产·精品毛片| 岛国精品在线播放| 国产成人av影院| 成人午夜电影久久影院| 国产91色综合久久免费分享| 国产伦精品一区二区三区免费迷| 国产在线播精品第三| 国产一区欧美日韩| 高清日韩电视剧大全免费| 国产精品2024| 成人综合激情网| 成人av资源网站| 色婷婷久久综合| 欧美视频一区在线观看| 欧美女孩性生活视频| 日韩一区二区三区精品视频| 欧美一区二区三区视频在线| 日韩精品专区在线影院重磅| 精品国产一区二区三区不卡| 久久精品视频一区二区三区| 国产欧美日本一区二区三区| 亚洲欧洲精品成人久久奇米网| 亚洲欧美日韩一区二区| 亚洲黄色免费网站| 日本不卡不码高清免费观看| 久久精工是国产品牌吗| 国产精品亚洲综合一区在线观看| 成人黄色大片在线观看| 91啪亚洲精品| 91精品麻豆日日躁夜夜躁| 欧美成人性战久久| 国产精品久久影院| 香蕉影视欧美成人| 国产河南妇女毛片精品久久久| 91在线视频观看| 欧美一区二区三级| 欧美激情艳妇裸体舞| 亚洲午夜激情av| 久久99精品国产麻豆不卡| 成人免费毛片片v| 欧美精品 国产精品| 国产偷国产偷亚洲高清人白洁| 亚洲精品视频在线看| 日韩不卡在线观看日韩不卡视频| 国产一区二区三区在线看麻豆| 99久久综合精品| 日韩欧美中文字幕制服| 中文字幕在线一区| 日韩成人伦理电影在线观看| 成人app软件下载大全免费| 91精品午夜视频| 最新日韩在线视频| 狠狠色综合播放一区二区| 91美女片黄在线观看| 日韩午夜激情av| 亚洲欧美日韩在线不卡| 国产在线精品一区在线观看麻豆| 欧美亚洲动漫精品| 国产视频在线观看一区二区三区| 五月激情六月综合| 97久久精品人人做人人爽| 精品国产乱码久久久久久免费| 亚洲久草在线视频| 国产电影一区二区三区| 91精品国产一区二区三区香蕉| 国产精品国模大尺度视频| 久久se精品一区精品二区| 欧美午夜一区二区三区| 日本一区二区久久| 精品一二三四区| 欧美久久婷婷综合色| 亚洲激情综合网| av电影天堂一区二区在线| 精品国产1区2区3区| 石原莉奈在线亚洲三区| 色综合婷婷久久| 亚洲人妖av一区二区| 精品一区二区三区av| 69av一区二区三区| 亚洲精品国产视频| 99久免费精品视频在线观看| 国产日韩精品一区| 国产综合色视频| 欧美大片顶级少妇| 免播放器亚洲一区| 欧美一区二区在线观看| 肉色丝袜一区二区| 欧美日韩国产成人在线免费| 亚洲午夜一区二区三区| 色狠狠色噜噜噜综合网| 亚洲欧美日韩系列| 色偷偷88欧美精品久久久| 亚洲女同ⅹxx女同tv| 91小视频免费看| 亚洲人成网站色在线观看| 99re8在线精品视频免费播放| 中文字幕一区三区| 97久久精品人人澡人人爽| 亚洲天堂福利av| 色综合久久中文字幕综合网| √…a在线天堂一区| 日本久久电影网| 亚洲国产aⅴ天堂久久| 欧美日韩成人在线一区| 午夜视频一区在线观看| av一区二区三区黑人| 中文字幕精品三区| 国产传媒一区在线| 亚洲婷婷综合色高清在线| 粉嫩aⅴ一区二区三区四区| 久久嫩草精品久久久久| 免费成人结看片| 久久婷婷综合激情| 国产一区二区三区电影在线观看| 日韩女优毛片在线| 另类小说视频一区二区| 久久久高清一区二区三区| 国产一区视频网站| 欧美韩国日本不卡| 国产91丝袜在线播放九色| 亚洲精品菠萝久久久久久久| 99国产精品久| 一区二区免费在线| 欧美揉bbbbb揉bbbbb| 国产在线看一区| 中文文精品字幕一区二区| av在线播放一区二区三区| 26uuu亚洲综合色欧美| 成年人网站91| 亚洲香肠在线观看| 欧美一区二区三区四区久久| 视频一区中文字幕国产| 久久日一线二线三线suv| 国产成人高清在线| 亚洲欧美综合网| 91在线观看地址| 奇米精品一区二区三区在线观看| 欧美成人福利视频| 高清av一区二区| 亚州成人在线电影| 精品国产一区二区三区忘忧草 | 日本三级亚洲精品| 精品处破学生在线二十三| 风间由美一区二区三区在线观看 | 久久精品国产一区二区| 久久免费看少妇高潮| 成人网男人的天堂| 国产精品网友自拍| 欧美一级片在线| 国产成人av电影在线| 一区二区三区av电影| 4438亚洲最大| 懂色av中文字幕一区二区三区| 亚洲视频在线观看三级| 欧美精品乱码久久久久久| 成人美女视频在线看| 亚洲国产精品久久久久婷婷884 | 久久久久久久免费视频了| 色综合一区二区| 久99久精品视频免费观看| 亚洲成人自拍网|