casa
5.7.0-16
|
#include <VisibilityResamplerBase.h>
Public Member Functions | |
VisibilityResamplerBase () | |
VisibilityResamplerBase (const VisibilityResamplerBase &other) | |
VisibilityResamplerBase(const CFStore& cfs): uvwScale_p(), offset_p(), chanMap_p(), polMap_p(), convFuncStore_p(), inc_p(), cfMap_p(), conjCFMap_p() {setConvFunc(cfs);};. More... | |
virtual | ~VisibilityResamplerBase () |
VisibilityResamplerBase & | operator= (const VisibilityResamplerBase &other) |
virtual VisibilityResamplerBase * | clone ()=0 |
virtual void | copy (const VisibilityResamplerBase &other) |
virtual void | setParams (const casacore::Vector< casacore::Double > &uvwScale, const casacore::Vector< casacore::Double > &offset, const casacore::Vector< casacore::Double > &dphase)=0 |
virtual void | setMaps (const casacore::Vector< casacore::Int > &chanMap, const casacore::Vector< casacore::Int > &polMap)=0 |
virtual void | setCFMaps (const casacore::Vector< casacore::Int > &cfMap, const casacore::Vector< casacore::Int > &conjCFMap)=0 |
virtual void | setFreqMaps (const casacore::Matrix< casacore::Double > &spwChanFreqs, const casacore::Matrix< casacore::Double > &spwnChanConjFreqs)=0 |
virtual void | setConvFunc (const CFStore &cfs)=0 |
virtual void | setPATolerance (const double &dPA)=0 |
virtual void | DataToGrid (casacore::Array< casacore::DComplex > &griddedData, VBStore &vbs, casacore::Matrix< casacore::Double > &sumwt, const casacore::Bool &dopsf, casacore::Bool useConjFreqCF=false)=0 |
More... | |
virtual void | DataToGrid (casacore::Array< casacore::Complex > &griddedData, VBStore &vbs, casacore::Matrix< casacore::Double > &sumwt, const casacore::Bool &dopsf, casacore::Bool useConjFreqCF=false)=0 |
virtual void | GridToData (VBStore &vbs, const casacore::Array< casacore::Complex > &griddedData)=0 |
More... | |
virtual void | ComputeResiduals (VBStore &vbs)=0 |
virtual void GridToData(VBStore& vbs, casacore::Array<casacore::Complex>& griddedData); More... | |
virtual void | init (const casacore::Bool &doublePrecision)=0 |
Forward looking genealogical baggage – required for the MultiThreadedVisibilityResampler. More... | |
virtual void | GatherGrids (casacore::Array< casacore::DComplex > &griddedData, casacore::Matrix< casacore::Double > &sumwt)=0 |
virtual void | GatherGrids (casacore::Array< casacore::Complex > &griddedData, casacore::Matrix< casacore::Double > &sumwt)=0 |
virtual void | initializePutBuffers (const casacore::Array< casacore::DComplex > &griddedData, const casacore::Matrix< casacore::Double > &sumwt)=0 |
virtual void | initializePutBuffers (const casacore::Array< casacore::Complex > &griddedData, const casacore::Matrix< casacore::Double > &sumwt)=0 |
virtual void | initializeDataBuffers (VBStore &vbs)=0 |
void | finalizeToSky (casacore::Array< casacore::DComplex > &griddedData, casacore::Matrix< casacore::Double > &sumwt) |
Aliases for more readable code at the FTMachine layer. More... | |
void | finalizeToSky (casacore::Array< casacore::Complex > &griddedData, casacore::Matrix< casacore::Double > &sumwt) |
void | initializeToSky (const casacore::Array< casacore::DComplex > &griddedData, const casacore::Matrix< casacore::Double > &sumwt) |
void | initializeToSky (const casacore::Array< casacore::Complex > &griddedData, const casacore::Matrix< casacore::Double > &sumwt) |
const casacore::Vector < casacore::Int > | getCFMap () |
const casacore::Vector < casacore::Int > | getConjCFMap () |
virtual void | releaseBuffers ()=0 |
VB2CFBMap & | getVBRow2CFBMap () |
VBRow2CFMapType& getVBRow2CFMap() {return vbRow2CFMap_p;};. More... | |
void | setFieldPhaseGrad (const casacore::Matrix< casacore::Complex > &phaseGrad) |
virtual casacore::Int makeVBRow2CFBMap(CFStore2& cfs, ConvolutionFunction& cf, const VisBuffer2& vb, const casacore::Quantity& dPA, const casacore::Vector<casacore::Int>& dataChan2ImChanMap, const casacore::Vector<casacore::Int>& dataPol2ImPolMap, const casacore::Vector<casacore::Double>& pointingOffset); More... | |
void | setVB2CFMap (const casacore::CountedPtr< refim::VB2CFBMap > &thisMap) |
Protected Member Functions | |
void | sgrid (casacore::Int &ndim, casacore::Double *__restrict__ pos, casacore::Int *__restrict__ loc, casacore::Int *__restrict__ off, casacore::Complex &phasor, const casacore::Int &irow, const casacore::Double *__restrict__ uvw, const casacore::Double &dphase, const casacore::Double &freq, const casacore::Double *__restrict__ scale, const casacore::Double *__restrict__ offset, const casacore::Float *__restrict__ sampling) |
casacore::Bool | onGrid (const casacore::Int &nx, const casacore::Int &ny, const casacore::Vector< casacore::Int > &__restrict__ loc, const casacore::Vector< casacore::Int > &__restrict__ support) __restrict__ |
casacore::Bool | onGrid (const casacore::Int &nx, const casacore::Int &ny, const casacore::Int &loc0, const casacore::Int &loc1, const casacore::Int &support) __restrict__ |
void | cacheAxisIncrements (const casacore::Int &n0, const casacore::Int &n1, const casacore::Int &n2, const casacore::Int &n3) |
casacore::Array assignment operator in CASACore requires lhs.nelements() == 0 or lhs.nelements()=rhs.nelements() template <class t>=""> inline void SETVEC(casacore::Vector<T>& lhs, const casacore::Vector<T>& rhs) {lhs.resize(rhs.shape()); lhs = rhs;}; More... | |
void | cacheAxisIncrements (const casacore::Vector< casacore::Int > &n) |
void | cacheAxisIncrements (const casacore::Vector< casacore::Int > &n, casacore::Vector< casacore::Int > &inc) |
void | cacheAxisIncrements (const casacore::Int n[4], casacore::Int inc[4]) |
void | addTo4DArray (casacore::DComplex *__restrict__ &store, casacore::Int *__restrict__ &iPos, casacore::Complex &nvalue, casacore::Double &wt) __restrict__ |
Version that use internally cached inc_p template <class t>=""> More... | |
void | addTo4DArray (casacore::Complex *__restrict__ &store, casacore::Int *__restrict__ &iPos, casacore::Complex &nvalue, casacore::Double &wt) __restrict__ |
void | addTo4DArray (casacore::DComplex *__restrict__ &store, casacore::Int *__restrict__ &iPos, casacore::Int *__restrict__ inc, casacore::Complex &nvalue, casacore::Double &wt) __restrict__ |
Version where inc_p is supplied from outside. More... | |
void | addTo4DArray (casacore::Complex *__restrict__ &store, casacore::Int *__restrict__ &iPos, casacore::Int *__restrict__ inc, casacore::Complex &nvalue, casacore::Double &wt) __restrict__ |
casacore::Complex | getFrom4DArray (const casacore::Complex *__restrict__ &store, const casacore::Int *__restrict__ &iPos, const casacore::Vector< casacore::Int > &inc) |
restrict More... | |
casacore::Complex | getFrom4DArray (const casacore::Complex *__restrict__ &store, const casacore::Vector< casacore::Int > iPos, const casacore::Vector< casacore::Int > &inc) |
restrict More... | |
casacore::DComplex | getFrom4DArray (const casacore::DComplex *__restrict__ &store, const casacore::Int *__restrict__ &iPos, const casacore::Vector< casacore::Int > &inc) |
restrict More... | |
casacore::DComplex | getFrom4DArray (const casacore::DComplex *__restrict__ &store, const casacore::Vector< casacore::Int > iPos, const casacore::Vector< casacore::Int > &inc) |
restrict More... | |
casacore::Complex | getFrom4DArray (const casacore::Complex *__restrict__ &store, const casacore::Int *__restrict__ &iPos) |
The following two methods are called in the innermost loop. More... | |
casacore::DComplex | getFrom4DArray (const casacore::DComplex *__restrict__ &store, const casacore::Int *__restrict__ &iPos) |
restrict More... | |
Protected Attributes | |
casacore::Vector < casacore::Double > | uvwScale_p |
-------------------------—Private parts----------------------------------—More... | |
casacore::Vector < casacore::Double > | offset_p |
casacore::Vector < casacore::Double > | dphase_p |
casacore::Vector< casacore::Int > | chanMap_p |
casacore::Vector< casacore::Int > | polMap_p |
casacore::Matrix < casacore::Double > | spwChanFreq_p |
casacore::Matrix < casacore::Double > | spwChanConjFreq_p |
CFStore | convFuncStore_p |
casacore::Vector< casacore::Int > | inc_p |
casacore::Int inc0_p, inc1_p, inc2_p, inc3_p; More... | |
casacore::Int *__restrict__ | incPtr_p |
casacore::Vector< casacore::Int > | cfMap_p |
casacore::Vector< casacore::Int > | conjCFMap_p |
double | paTolerance_p |
VBRow2CFMapType vbRow2CFMap_p;. More... | |
casacore::Matrix < casacore::Complex > | cached_phaseGrad_p |
casacore::CountedPtr < refim::VB2CFBMap > | vb2CFBMap_p |
Definition at line 50 of file VisibilityResamplerBase.h.
|
inline |
Definition at line 53 of file VisibilityResamplerBase.h.
|
inline |
VisibilityResamplerBase(const CFStore& cfs): uvwScale_p(), offset_p(), chanMap_p(), polMap_p(), convFuncStore_p(), inc_p(), cfMap_p(), conjCFMap_p() {setConvFunc(cfs);};.
Definition at line 65 of file VisibilityResamplerBase.h.
References casacore::copy().
|
inlinevirtual |
Definition at line 70 of file VisibilityResamplerBase.h.
|
inlineprotected |
Version that use internally cached inc_p template <class t>="">
Definition at line 233 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 237 of file VisibilityResamplerBase.h.
|
inlineprotected |
Version where inc_p is supplied from outside.
Definition at line 243 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 247 of file VisibilityResamplerBase.h.
|
inlineprotected |
casacore::Array assignment operator in CASACore requires lhs.nelements() == 0 or lhs.nelements()=rhs.nelements() template <class t>=""> inline void SETVEC(casacore::Vector<T>& lhs, const casacore::Vector<T>& rhs) {lhs.resize(rhs.shape()); lhs = rhs;};
===============================================================================
Internal methods to address a 4D array. These should ulimately moved to a Array4D class in CASACore
This is called less frequently. Currently once per VisBuffer
inc0_p=1, inc1_p=inc0_p*n0, inc2_p=inc1_p*n1, inc3_p=inc2_p*n2;(void)n3;
Definition at line 214 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 222 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 225 of file VisibilityResamplerBase.h.
References casacore::Vector< T >::resize().
|
inlineprotected |
Definition at line 228 of file VisibilityResamplerBase.h.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler, and casa::refim::AWVisResampler.
|
pure virtual |
virtual void GridToData(VBStore& vbs, casacore::Array<casacore::Complex>& griddedData);
Implemented in casa::refim::VisibilityResampler.
|
virtual |
Reimplemented in casa::refim::AWVisResampler, and casa::refim::VisibilityResampler.
Referenced by casa::refim::VisibilityResampler::copy().
|
pure virtual |
Re-sample the griddedData on the VisBuffer (a.k.a gridding).
In this class, these just call the private templated version. The first variant grids onto a double precision grid while the second one does it on a single precision grid.
Implemented in casa::refim::AWVisResampler, and casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::AWVisResampler, and casa::refim::VisibilityResampler.
|
inline |
Aliases for more readable code at the FTMachine layer.
Definition at line 126 of file VisibilityResamplerBase.h.
|
inline |
Definition at line 128 of file VisibilityResamplerBase.h.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
inline |
Definition at line 134 of file VisibilityResamplerBase.h.
|
inline |
Definition at line 135 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 252 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 258 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 263 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 269 of file VisibilityResamplerBase.h.
|
inlineprotected |
The following two methods are called in the innermost loop.
restrict
Definition at line 276 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 280 of file VisibilityResamplerBase.h.
|
inline |
VBRow2CFMapType& getVBRow2CFMap() {return vbRow2CFMap_p;};.
Definition at line 140 of file VisibilityResamplerBase.h.
|
pure virtual |
Re-sample VisBuffer to a regular grid (griddedData) (a.k.a. de-gridding)
Implemented in casa::refim::AWVisResampler, and casa::refim::VisibilityResampler.
|
pure virtual |
Forward looking genealogical baggage – required for the MultiThreadedVisibilityResampler.
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
inline |
Definition at line 130 of file VisibilityResamplerBase.h.
|
inline |
Definition at line 132 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 184 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 191 of file VisibilityResamplerBase.h.
VisibilityResamplerBase& casa::refim::VisibilityResamplerBase::operator= | ( | const VisibilityResamplerBase & | other | ) |
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler, and casa::refim::AWVisResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
inline |
virtual casacore::Int makeVBRow2CFBMap(CFStore2& cfs, ConvolutionFunction& cf, const VisBuffer2& vb, const casacore::Quantity& dPA, const casacore::Vector<casacore::Int>& dataChan2ImChanMap, const casacore::Vector<casacore::Int>& dataPol2ImPolMap, const casacore::Vector<casacore::Double>& pointingOffset);
Definition at line 148 of file VisibilityResamplerBase.h.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
pure virtual |
Implemented in casa::refim::VisibilityResampler.
|
inline |
Definition at line 149 of file VisibilityResamplerBase.h.
|
protected |
|
protected |
Definition at line 170 of file VisibilityResamplerBase.h.
Referenced by casa::refim::AWVisResampler::copy(), and casa::refim::AWVisResampler::operator=().
|
protected |
Definition at line 167 of file VisibilityResamplerBase.h.
Referenced by casa::refim::AWVisResampler::copyMaps(), and casa::refim::AWVisResampler::setCFMaps().
|
protected |
Definition at line 161 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setMaps().
|
protected |
Definition at line 167 of file VisibilityResamplerBase.h.
Referenced by casa::refim::AWVisResampler::copyMaps(), and casa::refim::AWVisResampler::setCFMaps().
|
protected |
Definition at line 163 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setConvFunc().
|
protected |
Definition at line 160 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::getParams(), and casa::refim::VisibilityResampler::setParams().
|
protected |
casacore::Int inc0_p, inc1_p, inc2_p, inc3_p;
Definition at line 165 of file VisibilityResamplerBase.h.
|
protected |
Definition at line 166 of file VisibilityResamplerBase.h.
|
protected |
Definition at line 160 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::getParams(), and casa::refim::VisibilityResampler::setParams().
|
protected |
VBRow2CFMapType vbRow2CFMap_p;.
Definition at line 169 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setPATolerance().
|
protected |
Definition at line 161 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setMaps().
casacore::Double casa::refim::VisibilityResamplerBase::runTimeDG_p |
Definition at line 151 of file VisibilityResamplerBase.h.
Referenced by casa::refim::AWVisResampler::AWVisResampler().
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG1_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG2_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG3_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG4_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG5_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG6_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG7_p |
Definition at line 151 of file VisibilityResamplerBase.h.
casacore::Double casa::refim::VisibilityResamplerBase::runTimeG_p |
Definition at line 151 of file VisibilityResamplerBase.h.
Referenced by casa::refim::AWVisResampler::AWVisResampler().
|
protected |
Definition at line 162 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setFreqMaps().
|
protected |
Definition at line 162 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::setFreqMaps().
casacore::Timer casa::refim::VisibilityResamplerBase::timer_p |
Definition at line 152 of file VisibilityResamplerBase.h.
|
protected |
private:
Definition at line 160 of file VisibilityResamplerBase.h.
Referenced by casa::refim::VisibilityResampler::getParams(), and casa::refim::VisibilityResampler::setParams().
|
protected |
Definition at line 171 of file VisibilityResamplerBase.h.