Commit 169bdfd3 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

compactify

parent 6cf1acc7
...@@ -55,11 +55,13 @@ template<typename T> class Interpolator ...@@ -55,11 +55,13 @@ template<typename T> class Interpolator
for (size_t i=0; i<nphi0; ++i) for (size_t i=0; i<nphi0; ++i)
for (size_t j=0; j<nphi0; ++j) for (size_t j=0; j<nphi0; ++j)
tmp0.v(i,j) *= fct[(i+1)/2] * fct[(j+1)/2]; tmp0.v(i,j) *= fct[(i+1)/2] * fct[(j+1)/2];
fmav<T> ftmp(tmp); mav<T,2> tmp1(tmp.vdata(),{nphi, nphi0}, tmp.stride(), true);
r2r_fftpack(ftmp,ftmp,{1,0},false,false,1.,0); fmav<T> ftmp1(tmp1);
for (size_t i=0; i<ntheta; ++i) r2r_fftpack(ftmp1,ftmp1,{0},false,false,1.,0);
for (size_t j=0; j<nphi; ++j) mav<T,2> tmp2(tmp.vdata(),{ntheta, nphi}, tmp.stride(), true);
arr.v(i,j) = tmp(i,j); fmav<T> ftmp2(tmp2);
fmav<T> farr(arr);
r2r_fftpack(ftmp2,farr,{1},false,false,1.,0);
} }
public: public:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment