LCOV - code coverage report
Current view: top level - synthesis/TransformMachines2 - accumulateToGrid.inc (source / functions) Hit Total Coverage
Test: ctest_coverage.info Lines: 30 30 100.0 %
Date: 2023-11-06 10:06:49 Functions: 0 0 -

          Line data    Source code
       1             : // -*- C++ -*-
       2             : //
       3             : // File to include to get the inner gridding loops without a function call
       4             : //
       5             : //--------------------------------------------------------------------------------
       6             :   {
       7             :     Int iLoc[2];
       8             :     Bool Dummy;
       9     6325760 :     Complex wt;
      10             : 
      11    12651520 :     Vector<Int> iCFPos(4,0);
      12     6325760 :     const Int * __restrict__ gridInc_p_ptr= gridInc_p.getStorage(Dummy);
      13     6325760 :     const Int * __restrict__ iGrdPosPtr = igrdpos.getStorage(Dummy);
      14     6325760 :     T* __restrict__ gridStore = grid.getStorage(Dummy);
      15             : 
      16     6325760 :     const Int* scaledSupport_ptr=support.getStorage(Dummy);
      17     6325760 :     const Float *scaledSampling_ptr=sampling.getStorage(Dummy);
      18     6325760 :     const Double *off_ptr=off.getStorage(Dummy);
      19     6325760 :     const Int *loc_ptr = loc.getStorage(Dummy);
      20     6325760 :     Int *iCFPos_ptr = iCFPos.getStorage(Dummy);
      21     6325760 :     const Int* convOrigin_ptr=convOrigin.getStorage(Dummy);
      22     6325760 :     Int *igrdpos_ptr=igrdpos.getStorage(Dummy);
      23     6325760 :     Int *cfInc_p_ptr = cfInc_p.getStorage(Dummy);
      24             :     
      25             :     Int phaseGradOrigin_l[2];
      26     6325760 :     phaseGradOrigin_l[0] = cached_phaseGrad_p.shape()(0)/2;
      27     6325760 :     phaseGradOrigin_l[1] = cached_phaseGrad_p.shape()(0)/2;
      28             :    
      29             : 
      30   130857644 :     for(Int iy=-scaledSupport_ptr[1]; iy <= scaledSupport_ptr[1]; iy++) 
      31             :       {
      32             :         //      iloc_ptr[1]=SynthesisUtils::nint((scaledSampling_ptr[1]*iy+off_ptr[1])-1);
      33   124531884 :         iLoc[1]=(Int)((scaledSampling_ptr[1]*iy+off_ptr[1]));
      34   124531884 :         igrdpos_ptr[1]=loc_ptr[1]+iy;
      35   124531884 :         iCFPos_ptr[1] =iLoc[1]+convOrigin_ptr[1];
      36             : 
      37  2819545612 :         for(Int ix=-scaledSupport_ptr[0]; ix <= scaledSupport_ptr[0]; ix++) 
      38             :           {
      39             :             //      iloc_ptr[0]=SynthesisUtils::nint((scaledSampling_ptr[0]*ix+off_ptr[0])-1);
      40  2695013728 :             iLoc[0]=(Int)((scaledSampling_ptr[0]*ix+off_ptr[0]));
      41  2695013728 :             igrdpos_ptr[0]=loc_ptr[0]+ix;
      42  2695013728 :             iCFPos_ptr[0] =iLoc[0]+convOrigin_ptr[0];
      43  2695013728 :             wt = getFrom4DArray((const Complex * __restrict__ &)convFuncV, 
      44             :                                 iCFPos_ptr,cfInc_p_ptr);//cfArea;
      45  2695013728 :             if (dataWVal > 0.0) {wt = conj(wt);}
      46  2695013728 :             norm += (wt);
      47  2695013728 :             if (finitePointingOffsets)
      48             :               {
      49  1999974804 :                 wt *= cached_phaseGrad_p(iLoc[0]+phaseGradOrigin_l[0],
      50   999987402 :                                          iLoc[1]+phaseGradOrigin_l[1]);
      51             :               }
      52  2695013728 :             addTo4DArray_ptr(gridStore,iGrdPosPtr,gridInc_p_ptr, nvalue,wt);
      53             :           }
      54             :       }
      55             :   }

Generated by: LCOV version 1.16