| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254 |
- !*******************************************************************************
- ! Copyright (c) 2003, 2007-11 Matteo Frigo
- ! Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
- !
- ! This program is distributed with permission
- !
- !*******************************************************************************
- ! Generated automatically by FFTW generator. DO NOT EDIT!
- integer, parameter :: C_FFTW_R2R_KIND = C_INT32_T
- integer(C_INT), parameter :: FFTW_R2HC = 0
- integer(C_INT), parameter :: FFTW_HC2R = 1
- integer(C_INT), parameter :: FFTW_DHT = 2
- integer(C_INT), parameter :: FFTW_REDFT00 = 3
- integer(C_INT), parameter :: FFTW_REDFT01 = 4
- integer(C_INT), parameter :: FFTW_REDFT10 = 5
- integer(C_INT), parameter :: FFTW_REDFT11 = 6
- integer(C_INT), parameter :: FFTW_RODFT00 = 7
- integer(C_INT), parameter :: FFTW_RODFT01 = 8
- integer(C_INT), parameter :: FFTW_RODFT10 = 9
- integer(C_INT), parameter :: FFTW_RODFT11 = 10
- integer(C_INT), parameter :: FFTW_FORWARD = -1
- integer(C_INT), parameter :: FFTW_BACKWARD = +1
- integer(C_INT), parameter :: FFTW_MEASURE = 0
- integer(C_INT), parameter :: FFTW_DESTROY_INPUT = 1
- integer(C_INT), parameter :: FFTW_UNALIGNED = 2
- integer(C_INT), parameter :: FFTW_CONSERVE_MEMORY = 4
- integer(C_INT), parameter :: FFTW_EXHAUSTIVE = 8
- integer(C_INT), parameter :: FFTW_PRESERVE_INPUT = 16
- integer(C_INT), parameter :: FFTW_PATIENT = 32
- integer(C_INT), parameter :: FFTW_ESTIMATE = 64
- integer(C_INT), parameter :: FFTW_WISDOM_ONLY = 2097152
- integer(C_INT), parameter :: FFTW_ESTIMATE_PATIENT = 128
- integer(C_INT), parameter :: FFTW_BELIEVE_PCOST = 256
- integer(C_INT), parameter :: FFTW_NO_DFT_R2HC = 512
- integer(C_INT), parameter :: FFTW_NO_NONTHREADED = 1024
- integer(C_INT), parameter :: FFTW_NO_BUFFERING = 2048
- integer(C_INT), parameter :: FFTW_NO_INDIRECT_OP = 4096
- integer(C_INT), parameter :: FFTW_ALLOW_LARGE_GENERIC = 8192
- integer(C_INT), parameter :: FFTW_NO_RANK_SPLITS = 16384
- integer(C_INT), parameter :: FFTW_NO_VRANK_SPLITS = 32768
- integer(C_INT), parameter :: FFTW_NO_VRECURSE = 65536
- integer(C_INT), parameter :: FFTW_NO_SIMD = 131072
- integer(C_INT), parameter :: FFTW_NO_SLOW = 262144
- integer(C_INT), parameter :: FFTW_NO_FIXED_RADIX_LARGE_N = 524288
- integer(C_INT), parameter :: FFTW_ALLOW_PRUNING = 1048576
- type, bind(C) :: fftw_iodim
- integer(C_INT) n, is, os
- end type fftw_iodim
- type, bind(C) :: fftw_iodim64
- integer(C_INTPTR_T) n, is, os
- end type fftw_iodim64
- interface
- type(C_PTR) function fftw_plan_dft(rank,n,in,out,sign,flags) bind(C, name='fftw_plan_dft')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_dft
- type(C_PTR) function fftw_plan_dft_1d(n,in,out,sign,flags) bind(C, name='fftw_plan_dft_1d')
- import
- integer(C_INT), value :: n
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_dft_1d
- type(C_PTR) function fftw_plan_dft_2d(n0,n1,in,out,sign,flags) bind(C, name='fftw_plan_dft_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_dft_2d
- type(C_PTR) function fftw_plan_dft_3d(n0,n1,n2,in,out,sign,flags) bind(C, name='fftw_plan_dft_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_dft_3d
- type(C_PTR) function fftw_plan_many_dft(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,sign,flags) &
- bind(C, name='fftw_plan_many_dft')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_many_dft
- type(C_PTR) function fftw_plan_guru_dft(rank,dims,howmany_rank,howmany_dims,in,out,sign,flags) &
- bind(C, name='fftw_plan_guru_dft')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_guru_dft
- type(C_PTR) function fftw_plan_guru_split_dft(rank,dims,howmany_rank,howmany_dims,ri,ii,ro,io,flags) &
- bind(C, name='fftw_plan_guru_split_dft')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: ri
- real(C_DOUBLE), dimension(*), intent(out) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftw_plan_guru_split_dft
- type(C_PTR) function fftw_plan_guru64_dft(rank,dims,howmany_rank,howmany_dims,in,out,sign,flags) &
- bind(C, name='fftw_plan_guru64_dft')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_dft
- type(C_PTR) function fftw_plan_guru64_split_dft(rank,dims,howmany_rank,howmany_dims,ri,ii,ro,io,flags) &
- bind(C, name='fftw_plan_guru64_split_dft')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: ri
- real(C_DOUBLE), dimension(*), intent(out) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_split_dft
- subroutine fftw_execute_dft(p,in,out) bind(C, name='fftw_execute_dft')
- import
- type(C_PTR), value :: p
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(inout) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- end subroutine fftw_execute_dft
- subroutine fftw_execute_split_dft(p,ri,ii,ro,io) bind(C, name='fftw_execute_split_dft')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), dimension(*), intent(inout) :: ri
- real(C_DOUBLE), dimension(*), intent(inout) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- end subroutine fftw_execute_split_dft
- type(C_PTR) function fftw_plan_many_dft_r2c(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,flags) &
- bind(C, name='fftw_plan_many_dft_r2c')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- real(C_DOUBLE), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: flags
- end function fftw_plan_many_dft_r2c
- type(C_PTR) function fftw_plan_dft_r2c(rank,n,in,out,flags) bind(C, name='fftw_plan_dft_r2c')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_r2c
- type(C_PTR) function fftw_plan_dft_r2c_1d(n,in,out,flags) bind(C, name='fftw_plan_dft_r2c_1d')
- import
- integer(C_INT), value :: n
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_r2c_1d
- type(C_PTR) function fftw_plan_dft_r2c_2d(n0,n1,in,out,flags) bind(C, name='fftw_plan_dft_r2c_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_r2c_2d
- type(C_PTR) function fftw_plan_dft_r2c_3d(n0,n1,n2,in,out,flags) bind(C, name='fftw_plan_dft_r2c_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_r2c_3d
- type(C_PTR) function fftw_plan_many_dft_c2r(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,flags) &
- bind(C, name='fftw_plan_many_dft_c2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: flags
- end function fftw_plan_many_dft_c2r
- type(C_PTR) function fftw_plan_dft_c2r(rank,n,in,out,flags) bind(C, name='fftw_plan_dft_c2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_c2r
- type(C_PTR) function fftw_plan_dft_c2r_1d(n,in,out,flags) bind(C, name='fftw_plan_dft_c2r_1d')
- import
- integer(C_INT), value :: n
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_c2r_1d
- type(C_PTR) function fftw_plan_dft_c2r_2d(n0,n1,in,out,flags) bind(C, name='fftw_plan_dft_c2r_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_c2r_2d
- type(C_PTR) function fftw_plan_dft_c2r_3d(n0,n1,n2,in,out,flags) bind(C, name='fftw_plan_dft_c2r_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_dft_c2r_3d
- type(C_PTR) function fftw_plan_guru_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftw_plan_guru_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru_dft_r2c
- type(C_PTR) function fftw_plan_guru_dft_c2r(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftw_plan_guru_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru_dft_c2r
- type(C_PTR) function fftw_plan_guru_split_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,ro,io,flags) &
- bind(C, name='fftw_plan_guru_split_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftw_plan_guru_split_dft_r2c
- type(C_PTR) function fftw_plan_guru_split_dft_c2r(rank,dims,howmany_rank,howmany_dims,ri,ii,out,flags) &
- bind(C, name='fftw_plan_guru_split_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: ri
- real(C_DOUBLE), dimension(*), intent(out) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru_split_dft_c2r
- type(C_PTR) function fftw_plan_guru64_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftw_plan_guru64_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_dft_r2c
- type(C_PTR) function fftw_plan_guru64_dft_c2r(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftw_plan_guru64_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_dft_c2r
- type(C_PTR) function fftw_plan_guru64_split_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,ro,io,flags) &
- bind(C, name='fftw_plan_guru64_split_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_split_dft_r2c
- type(C_PTR) function fftw_plan_guru64_split_dft_c2r(rank,dims,howmany_rank,howmany_dims,ri,ii,out,flags) &
- bind(C, name='fftw_plan_guru64_split_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: ri
- real(C_DOUBLE), dimension(*), intent(out) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_split_dft_c2r
- subroutine fftw_execute_dft_r2c(p,in,out) bind(C, name='fftw_execute_dft_r2c')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), dimension(*), intent(inout) :: in
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(out) :: out
- end subroutine fftw_execute_dft_r2c
- subroutine fftw_execute_dft_c2r(p,in,out) bind(C, name='fftw_execute_dft_c2r')
- import
- type(C_PTR), value :: p
- complex(C_DOUBLE_COMPLEX), dimension(*), intent(inout) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- end subroutine fftw_execute_dft_c2r
- subroutine fftw_execute_split_dft_r2c(p,in,ro,io) bind(C, name='fftw_execute_split_dft_r2c')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), dimension(*), intent(inout) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: ro
- real(C_DOUBLE), dimension(*), intent(out) :: io
- end subroutine fftw_execute_split_dft_r2c
- subroutine fftw_execute_split_dft_c2r(p,ri,ii,out) bind(C, name='fftw_execute_split_dft_c2r')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), dimension(*), intent(inout) :: ri
- real(C_DOUBLE), dimension(*), intent(inout) :: ii
- real(C_DOUBLE), dimension(*), intent(out) :: out
- end subroutine fftw_execute_split_dft_c2r
- type(C_PTR) function fftw_plan_many_r2r(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,kind,flags) &
- bind(C, name='fftw_plan_many_r2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- real(C_DOUBLE), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftw_plan_many_r2r
- type(C_PTR) function fftw_plan_r2r(rank,n,in,out,kind,flags) bind(C, name='fftw_plan_r2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftw_plan_r2r
- type(C_PTR) function fftw_plan_r2r_1d(n,in,out,kind,flags) bind(C, name='fftw_plan_r2r_1d')
- import
- integer(C_INT), value :: n
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind
- integer(C_INT), value :: flags
- end function fftw_plan_r2r_1d
- type(C_PTR) function fftw_plan_r2r_2d(n0,n1,in,out,kind0,kind1,flags) bind(C, name='fftw_plan_r2r_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind0
- integer(C_FFTW_R2R_KIND), value :: kind1
- integer(C_INT), value :: flags
- end function fftw_plan_r2r_2d
- type(C_PTR) function fftw_plan_r2r_3d(n0,n1,n2,in,out,kind0,kind1,kind2,flags) bind(C, name='fftw_plan_r2r_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind0
- integer(C_FFTW_R2R_KIND), value :: kind1
- integer(C_FFTW_R2R_KIND), value :: kind2
- integer(C_INT), value :: flags
- end function fftw_plan_r2r_3d
- type(C_PTR) function fftw_plan_guru_r2r(rank,dims,howmany_rank,howmany_dims,in,out,kind,flags) &
- bind(C, name='fftw_plan_guru_r2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftw_plan_guru_r2r
- type(C_PTR) function fftw_plan_guru64_r2r(rank,dims,howmany_rank,howmany_dims,in,out,kind,flags) &
- bind(C, name='fftw_plan_guru64_r2r')
- import
- integer(C_INT), value :: rank
- type(fftw_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftw_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_DOUBLE), dimension(*), intent(out) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftw_plan_guru64_r2r
- subroutine fftw_execute_r2r(p,in,out) bind(C, name='fftw_execute_r2r')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), dimension(*), intent(inout) :: in
- real(C_DOUBLE), dimension(*), intent(out) :: out
- end subroutine fftw_execute_r2r
- subroutine fftw_destroy_plan(p) bind(C, name='fftw_destroy_plan')
- import
- type(C_PTR), value :: p
- end subroutine fftw_destroy_plan
- subroutine fftw_forget_wisdom() bind(C, name='fftw_forget_wisdom')
- import
- end subroutine fftw_forget_wisdom
- subroutine fftw_cleanup() bind(C, name='fftw_cleanup')
- import
- end subroutine fftw_cleanup
- subroutine fftw_set_timelimit(t) bind(C, name='fftw_set_timelimit')
- import
- real(C_DOUBLE), value :: t
- end subroutine fftw_set_timelimit
- subroutine fftw_plan_with_nthreads(nthreads) bind(C, name='fftw_plan_with_nthreads')
- import
- integer(C_INT), value :: nthreads
- end subroutine fftw_plan_with_nthreads
- integer(C_INT) function fftw_init_threads() bind(C, name='fftw_init_threads')
- import
- end function fftw_init_threads
- subroutine fftw_cleanup_threads() bind(C, name='fftw_cleanup_threads')
- import
- end subroutine fftw_cleanup_threads
- integer(C_INT) function fftw_export_wisdom_to_filename(filename) bind(C, name='fftw_export_wisdom_to_filename')
- import
- character(C_CHAR), dimension(*), intent(in) :: filename
- end function fftw_export_wisdom_to_filename
- subroutine fftw_export_wisdom_to_file(output_file) bind(C, name='fftw_export_wisdom_to_file')
- import
- type(C_PTR), value :: output_file
- end subroutine fftw_export_wisdom_to_file
- type(C_PTR) function fftw_export_wisdom_to_string() bind(C, name='fftw_export_wisdom_to_string')
- import
- end function fftw_export_wisdom_to_string
- subroutine fftw_export_wisdom(write_char,data) bind(C, name='fftw_export_wisdom')
- import
- type(C_FUNPTR), value :: write_char
- type(C_PTR), value :: data
- end subroutine fftw_export_wisdom
- integer(C_INT) function fftw_import_system_wisdom() bind(C, name='fftw_import_system_wisdom')
- import
- end function fftw_import_system_wisdom
- integer(C_INT) function fftw_import_wisdom_from_filename(filename) bind(C, name='fftw_import_wisdom_from_filename')
- import
- character(C_CHAR), dimension(*), intent(in) :: filename
- end function fftw_import_wisdom_from_filename
- integer(C_INT) function fftw_import_wisdom_from_file(input_file) bind(C, name='fftw_import_wisdom_from_file')
- import
- type(C_PTR), value :: input_file
- end function fftw_import_wisdom_from_file
- integer(C_INT) function fftw_import_wisdom_from_string(input_string) bind(C, name='fftw_import_wisdom_from_string')
- import
- character(C_CHAR), dimension(*), intent(in) :: input_string
- end function fftw_import_wisdom_from_string
- integer(C_INT) function fftw_import_wisdom(read_char,data) bind(C, name='fftw_import_wisdom')
- import
- type(C_FUNPTR), value :: read_char
- type(C_PTR), value :: data
- end function fftw_import_wisdom
- subroutine fftw_fprint_plan(p,output_file) bind(C, name='fftw_fprint_plan')
- import
- type(C_PTR), value :: p
- type(C_PTR), value :: output_file
- end subroutine fftw_fprint_plan
- subroutine fftw_print_plan(p) bind(C, name='fftw_print_plan')
- import
- type(C_PTR), value :: p
- end subroutine fftw_print_plan
- type(C_PTR) function fftw_sprint_plan(p) bind(C, name='fftw_sprint_plan')
- import
- type(C_PTR), value :: p
- end function fftw_sprint_plan
- type(C_PTR) function fftw_malloc(n) bind(C, name='fftw_malloc')
- import
- integer(C_SIZE_T), value :: n
- end function fftw_malloc
- type(C_PTR) function fftw_alloc_real(n) bind(C, name='fftw_alloc_real')
- import
- integer(C_SIZE_T), value :: n
- end function fftw_alloc_real
- type(C_PTR) function fftw_alloc_complex(n) bind(C, name='fftw_alloc_complex')
- import
- integer(C_SIZE_T), value :: n
- end function fftw_alloc_complex
- subroutine fftw_free(p) bind(C, name='fftw_free')
- import
- type(C_PTR), value :: p
- end subroutine fftw_free
- subroutine fftw_flops(p,add,mul,fmas) bind(C, name='fftw_flops')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), intent(out) :: add
- real(C_DOUBLE), intent(out) :: mul
- real(C_DOUBLE), intent(out) :: fmas
- end subroutine fftw_flops
- real(C_DOUBLE) function fftw_estimate_cost(p) bind(C, name='fftw_estimate_cost')
- import
- type(C_PTR), value :: p
- end function fftw_estimate_cost
- real(C_DOUBLE) function fftw_cost(p) bind(C, name='fftw_cost')
- import
- type(C_PTR), value :: p
- end function fftw_cost
- integer(C_INT) function fftw_alignment_of(p) bind(C, name='fftw_alignment_of')
- import
- real(C_DOUBLE), dimension(*), intent(out) :: p
- end function fftw_alignment_of
- end interface
- type, bind(C) :: fftwf_iodim
- integer(C_INT) n, is, os
- end type fftwf_iodim
- type, bind(C) :: fftwf_iodim64
- integer(C_INTPTR_T) n, is, os
- end type fftwf_iodim64
- interface
- type(C_PTR) function fftwf_plan_dft(rank,n,in,out,sign,flags) bind(C, name='fftwf_plan_dft')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_dft
- type(C_PTR) function fftwf_plan_dft_1d(n,in,out,sign,flags) bind(C, name='fftwf_plan_dft_1d')
- import
- integer(C_INT), value :: n
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_1d
- type(C_PTR) function fftwf_plan_dft_2d(n0,n1,in,out,sign,flags) bind(C, name='fftwf_plan_dft_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_2d
- type(C_PTR) function fftwf_plan_dft_3d(n0,n1,n2,in,out,sign,flags) bind(C, name='fftwf_plan_dft_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_3d
- type(C_PTR) function fftwf_plan_many_dft(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,sign,flags) &
- bind(C, name='fftwf_plan_many_dft')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_many_dft
- type(C_PTR) function fftwf_plan_guru_dft(rank,dims,howmany_rank,howmany_dims,in,out,sign,flags) &
- bind(C, name='fftwf_plan_guru_dft')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_dft
- type(C_PTR) function fftwf_plan_guru_split_dft(rank,dims,howmany_rank,howmany_dims,ri,ii,ro,io,flags) &
- bind(C, name='fftwf_plan_guru_split_dft')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: ri
- real(C_FLOAT), dimension(*), intent(out) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_split_dft
- type(C_PTR) function fftwf_plan_guru64_dft(rank,dims,howmany_rank,howmany_dims,in,out,sign,flags) &
- bind(C, name='fftwf_plan_guru64_dft')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: sign
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_dft
- type(C_PTR) function fftwf_plan_guru64_split_dft(rank,dims,howmany_rank,howmany_dims,ri,ii,ro,io,flags) &
- bind(C, name='fftwf_plan_guru64_split_dft')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: ri
- real(C_FLOAT), dimension(*), intent(out) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_split_dft
- subroutine fftwf_execute_dft(p,in,out) bind(C, name='fftwf_execute_dft')
- import
- type(C_PTR), value :: p
- complex(C_FLOAT_COMPLEX), dimension(*), intent(inout) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- end subroutine fftwf_execute_dft
- subroutine fftwf_execute_split_dft(p,ri,ii,ro,io) bind(C, name='fftwf_execute_split_dft')
- import
- type(C_PTR), value :: p
- real(C_FLOAT), dimension(*), intent(inout) :: ri
- real(C_FLOAT), dimension(*), intent(inout) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- end subroutine fftwf_execute_split_dft
- type(C_PTR) function fftwf_plan_many_dft_r2c(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,flags) &
- bind(C, name='fftwf_plan_many_dft_r2c')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- real(C_FLOAT), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: flags
- end function fftwf_plan_many_dft_r2c
- type(C_PTR) function fftwf_plan_dft_r2c(rank,n,in,out,flags) bind(C, name='fftwf_plan_dft_r2c')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_r2c
- type(C_PTR) function fftwf_plan_dft_r2c_1d(n,in,out,flags) bind(C, name='fftwf_plan_dft_r2c_1d')
- import
- integer(C_INT), value :: n
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_r2c_1d
- type(C_PTR) function fftwf_plan_dft_r2c_2d(n0,n1,in,out,flags) bind(C, name='fftwf_plan_dft_r2c_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_r2c_2d
- type(C_PTR) function fftwf_plan_dft_r2c_3d(n0,n1,n2,in,out,flags) bind(C, name='fftwf_plan_dft_r2c_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_r2c_3d
- type(C_PTR) function fftwf_plan_many_dft_c2r(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,flags) &
- bind(C, name='fftwf_plan_many_dft_c2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_INT), value :: flags
- end function fftwf_plan_many_dft_c2r
- type(C_PTR) function fftwf_plan_dft_c2r(rank,n,in,out,flags) bind(C, name='fftwf_plan_dft_c2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_c2r
- type(C_PTR) function fftwf_plan_dft_c2r_1d(n,in,out,flags) bind(C, name='fftwf_plan_dft_c2r_1d')
- import
- integer(C_INT), value :: n
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_c2r_1d
- type(C_PTR) function fftwf_plan_dft_c2r_2d(n0,n1,in,out,flags) bind(C, name='fftwf_plan_dft_c2r_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_c2r_2d
- type(C_PTR) function fftwf_plan_dft_c2r_3d(n0,n1,n2,in,out,flags) bind(C, name='fftwf_plan_dft_c2r_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_dft_c2r_3d
- type(C_PTR) function fftwf_plan_guru_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftwf_plan_guru_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_dft_r2c
- type(C_PTR) function fftwf_plan_guru_dft_c2r(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftwf_plan_guru_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_dft_c2r
- type(C_PTR) function fftwf_plan_guru_split_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,ro,io,flags) &
- bind(C, name='fftwf_plan_guru_split_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_split_dft_r2c
- type(C_PTR) function fftwf_plan_guru_split_dft_c2r(rank,dims,howmany_rank,howmany_dims,ri,ii,out,flags) &
- bind(C, name='fftwf_plan_guru_split_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: ri
- real(C_FLOAT), dimension(*), intent(out) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_split_dft_c2r
- type(C_PTR) function fftwf_plan_guru64_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftwf_plan_guru64_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_dft_r2c
- type(C_PTR) function fftwf_plan_guru64_dft_c2r(rank,dims,howmany_rank,howmany_dims,in,out,flags) &
- bind(C, name='fftwf_plan_guru64_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_dft_c2r
- type(C_PTR) function fftwf_plan_guru64_split_dft_r2c(rank,dims,howmany_rank,howmany_dims,in,ro,io,flags) &
- bind(C, name='fftwf_plan_guru64_split_dft_r2c')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_split_dft_r2c
- type(C_PTR) function fftwf_plan_guru64_split_dft_c2r(rank,dims,howmany_rank,howmany_dims,ri,ii,out,flags) &
- bind(C, name='fftwf_plan_guru64_split_dft_c2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: ri
- real(C_FLOAT), dimension(*), intent(out) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_split_dft_c2r
- subroutine fftwf_execute_dft_r2c(p,in,out) bind(C, name='fftwf_execute_dft_r2c')
- import
- type(C_PTR), value :: p
- real(C_FLOAT), dimension(*), intent(inout) :: in
- complex(C_FLOAT_COMPLEX), dimension(*), intent(out) :: out
- end subroutine fftwf_execute_dft_r2c
- subroutine fftwf_execute_dft_c2r(p,in,out) bind(C, name='fftwf_execute_dft_c2r')
- import
- type(C_PTR), value :: p
- complex(C_FLOAT_COMPLEX), dimension(*), intent(inout) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- end subroutine fftwf_execute_dft_c2r
- subroutine fftwf_execute_split_dft_r2c(p,in,ro,io) bind(C, name='fftwf_execute_split_dft_r2c')
- import
- type(C_PTR), value :: p
- real(C_FLOAT), dimension(*), intent(inout) :: in
- real(C_FLOAT), dimension(*), intent(out) :: ro
- real(C_FLOAT), dimension(*), intent(out) :: io
- end subroutine fftwf_execute_split_dft_r2c
- subroutine fftwf_execute_split_dft_c2r(p,ri,ii,out) bind(C, name='fftwf_execute_split_dft_c2r')
- import
- type(C_PTR), value :: p
- real(C_FLOAT), dimension(*), intent(inout) :: ri
- real(C_FLOAT), dimension(*), intent(inout) :: ii
- real(C_FLOAT), dimension(*), intent(out) :: out
- end subroutine fftwf_execute_split_dft_c2r
- type(C_PTR) function fftwf_plan_many_r2r(rank,n,howmany,in,inembed,istride,idist,out,onembed,ostride,odist,kind,flags) &
- bind(C, name='fftwf_plan_many_r2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- integer(C_INT), value :: howmany
- real(C_FLOAT), dimension(*), intent(out) :: in
- integer(C_INT), dimension(*), intent(in) :: inembed
- integer(C_INT), value :: istride
- integer(C_INT), value :: idist
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_INT), dimension(*), intent(in) :: onembed
- integer(C_INT), value :: ostride
- integer(C_INT), value :: odist
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftwf_plan_many_r2r
- type(C_PTR) function fftwf_plan_r2r(rank,n,in,out,kind,flags) bind(C, name='fftwf_plan_r2r')
- import
- integer(C_INT), value :: rank
- integer(C_INT), dimension(*), intent(in) :: n
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftwf_plan_r2r
- type(C_PTR) function fftwf_plan_r2r_1d(n,in,out,kind,flags) bind(C, name='fftwf_plan_r2r_1d')
- import
- integer(C_INT), value :: n
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind
- integer(C_INT), value :: flags
- end function fftwf_plan_r2r_1d
- type(C_PTR) function fftwf_plan_r2r_2d(n0,n1,in,out,kind0,kind1,flags) bind(C, name='fftwf_plan_r2r_2d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind0
- integer(C_FFTW_R2R_KIND), value :: kind1
- integer(C_INT), value :: flags
- end function fftwf_plan_r2r_2d
- type(C_PTR) function fftwf_plan_r2r_3d(n0,n1,n2,in,out,kind0,kind1,kind2,flags) bind(C, name='fftwf_plan_r2r_3d')
- import
- integer(C_INT), value :: n0
- integer(C_INT), value :: n1
- integer(C_INT), value :: n2
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), value :: kind0
- integer(C_FFTW_R2R_KIND), value :: kind1
- integer(C_FFTW_R2R_KIND), value :: kind2
- integer(C_INT), value :: flags
- end function fftwf_plan_r2r_3d
- type(C_PTR) function fftwf_plan_guru_r2r(rank,dims,howmany_rank,howmany_dims,in,out,kind,flags) &
- bind(C, name='fftwf_plan_guru_r2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftwf_plan_guru_r2r
- type(C_PTR) function fftwf_plan_guru64_r2r(rank,dims,howmany_rank,howmany_dims,in,out,kind,flags) &
- bind(C, name='fftwf_plan_guru64_r2r')
- import
- integer(C_INT), value :: rank
- type(fftwf_iodim64), dimension(*), intent(in) :: dims
- integer(C_INT), value :: howmany_rank
- type(fftwf_iodim64), dimension(*), intent(in) :: howmany_dims
- real(C_FLOAT), dimension(*), intent(out) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- integer(C_FFTW_R2R_KIND), dimension(*), intent(in) :: kind
- integer(C_INT), value :: flags
- end function fftwf_plan_guru64_r2r
- subroutine fftwf_execute_r2r(p,in,out) bind(C, name='fftwf_execute_r2r')
- import
- type(C_PTR), value :: p
- real(C_FLOAT), dimension(*), intent(inout) :: in
- real(C_FLOAT), dimension(*), intent(out) :: out
- end subroutine fftwf_execute_r2r
- subroutine fftwf_destroy_plan(p) bind(C, name='fftwf_destroy_plan')
- import
- type(C_PTR), value :: p
- end subroutine fftwf_destroy_plan
- subroutine fftwf_forget_wisdom() bind(C, name='fftwf_forget_wisdom')
- import
- end subroutine fftwf_forget_wisdom
- subroutine fftwf_cleanup() bind(C, name='fftwf_cleanup')
- import
- end subroutine fftwf_cleanup
- subroutine fftwf_set_timelimit(t) bind(C, name='fftwf_set_timelimit')
- import
- real(C_DOUBLE), value :: t
- end subroutine fftwf_set_timelimit
- subroutine fftwf_plan_with_nthreads(nthreads) bind(C, name='fftwf_plan_with_nthreads')
- import
- integer(C_INT), value :: nthreads
- end subroutine fftwf_plan_with_nthreads
- integer(C_INT) function fftwf_init_threads() bind(C, name='fftwf_init_threads')
- import
- end function fftwf_init_threads
- subroutine fftwf_cleanup_threads() bind(C, name='fftwf_cleanup_threads')
- import
- end subroutine fftwf_cleanup_threads
- integer(C_INT) function fftwf_export_wisdom_to_filename(filename) bind(C, name='fftwf_export_wisdom_to_filename')
- import
- character(C_CHAR), dimension(*), intent(in) :: filename
- end function fftwf_export_wisdom_to_filename
- subroutine fftwf_export_wisdom_to_file(output_file) bind(C, name='fftwf_export_wisdom_to_file')
- import
- type(C_PTR), value :: output_file
- end subroutine fftwf_export_wisdom_to_file
- type(C_PTR) function fftwf_export_wisdom_to_string() bind(C, name='fftwf_export_wisdom_to_string')
- import
- end function fftwf_export_wisdom_to_string
- subroutine fftwf_export_wisdom(write_char,data) bind(C, name='fftwf_export_wisdom')
- import
- type(C_FUNPTR), value :: write_char
- type(C_PTR), value :: data
- end subroutine fftwf_export_wisdom
- integer(C_INT) function fftwf_import_system_wisdom() bind(C, name='fftwf_import_system_wisdom')
- import
- end function fftwf_import_system_wisdom
- integer(C_INT) function fftwf_import_wisdom_from_filename(filename) bind(C, name='fftwf_import_wisdom_from_filename')
- import
- character(C_CHAR), dimension(*), intent(in) :: filename
- end function fftwf_import_wisdom_from_filename
- integer(C_INT) function fftwf_import_wisdom_from_file(input_file) bind(C, name='fftwf_import_wisdom_from_file')
- import
- type(C_PTR), value :: input_file
- end function fftwf_import_wisdom_from_file
- integer(C_INT) function fftwf_import_wisdom_from_string(input_string) bind(C, name='fftwf_import_wisdom_from_string')
- import
- character(C_CHAR), dimension(*), intent(in) :: input_string
- end function fftwf_import_wisdom_from_string
- integer(C_INT) function fftwf_import_wisdom(read_char,data) bind(C, name='fftwf_import_wisdom')
- import
- type(C_FUNPTR), value :: read_char
- type(C_PTR), value :: data
- end function fftwf_import_wisdom
- subroutine fftwf_fprint_plan(p,output_file) bind(C, name='fftwf_fprint_plan')
- import
- type(C_PTR), value :: p
- type(C_PTR), value :: output_file
- end subroutine fftwf_fprint_plan
- subroutine fftwf_print_plan(p) bind(C, name='fftwf_print_plan')
- import
- type(C_PTR), value :: p
- end subroutine fftwf_print_plan
- type(C_PTR) function fftwf_sprint_plan(p) bind(C, name='fftwf_sprint_plan')
- import
- type(C_PTR), value :: p
- end function fftwf_sprint_plan
- type(C_PTR) function fftwf_malloc(n) bind(C, name='fftwf_malloc')
- import
- integer(C_SIZE_T), value :: n
- end function fftwf_malloc
- type(C_PTR) function fftwf_alloc_real(n) bind(C, name='fftwf_alloc_real')
- import
- integer(C_SIZE_T), value :: n
- end function fftwf_alloc_real
- type(C_PTR) function fftwf_alloc_complex(n) bind(C, name='fftwf_alloc_complex')
- import
- integer(C_SIZE_T), value :: n
- end function fftwf_alloc_complex
- subroutine fftwf_free(p) bind(C, name='fftwf_free')
- import
- type(C_PTR), value :: p
- end subroutine fftwf_free
- subroutine fftwf_flops(p,add,mul,fmas) bind(C, name='fftwf_flops')
- import
- type(C_PTR), value :: p
- real(C_DOUBLE), intent(out) :: add
- real(C_DOUBLE), intent(out) :: mul
- real(C_DOUBLE), intent(out) :: fmas
- end subroutine fftwf_flops
- real(C_DOUBLE) function fftwf_estimate_cost(p) bind(C, name='fftwf_estimate_cost')
- import
- type(C_PTR), value :: p
- end function fftwf_estimate_cost
- real(C_DOUBLE) function fftwf_cost(p) bind(C, name='fftwf_cost')
- import
- type(C_PTR), value :: p
- end function fftwf_cost
- integer(C_INT) function fftwf_alignment_of(p) bind(C, name='fftwf_alignment_of')
- import
- real(C_FLOAT), dimension(*), intent(out) :: p
- end function fftwf_alignment_of
- end interface
|