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 |
VBRow2CFMapType & | getVBRow2CFMap () |
VBRow2CFBMapType & | getVBRow2CFBMap () |
virtual casacore::Int | makeVBRow2CFMap (CFStore2 &cfs, ConvolutionFunction &cf, const VisBuffer &vb, const casacore::Quantity &dPA, const casacore::Vector< casacore::Int > &dataChan2ImChanMap, const casacore::Vector< casacore::Int > &dataPol2ImPolMap, const casacore::Vector< casacore::Double > &pointingOffset) |
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 |
VBRow2CFMapType | vbRow2CFMap_p |
VBRow2CFBMapType | vbRow2CFBMap_p |
double | paTolerance_p |
Definition at line 48 of file VisibilityResamplerBase.h.
|
inline |
Definition at line 51 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 63 of file VisibilityResamplerBase.h.
References copy().
|
inlinevirtual |
Definition at line 68 of file VisibilityResamplerBase.h.
|
inlineprotected |
Version that use internally cached inc_p template <class t>="">
Definition at line 227 of file VisibilityResamplerBase.h.
References incPtr_p.
Referenced by addTo4DArray().
|
inlineprotected |
Definition at line 231 of file VisibilityResamplerBase.h.
References addTo4DArray(), and incPtr_p.
|
inlineprotected |
Version where inc_p is supplied from outside.
Definition at line 237 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 241 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 208 of file VisibilityResamplerBase.h.
References casacore::Array< T >::getStorage(), inc_p, incPtr_p, and casacore::Vector< T >::resize().
Referenced by cacheAxisIncrements().
|
inlineprotected |
Definition at line 216 of file VisibilityResamplerBase.h.
References cacheAxisIncrements().
|
inlineprotected |
Definition at line 219 of file VisibilityResamplerBase.h.
References casacore::Vector< T >::resize().
|
inlineprotected |
Definition at line 222 of file VisibilityResamplerBase.h.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, casa::VisibilityResampler, casa::AWVisResampler, and casa::ProtoVR.
|
pure virtual |
virtual void GridToData(VBStore& vbs, casacore::Array<casacore::Complex>& griddedData);
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
virtual |
Reimplemented in casa::AWVisResampler, casa::ProtoVR, and casa::VisibilityResampler.
Referenced by casa::VisibilityResampler::copy(), and VisibilityResamplerBase().
|
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::ProtoVR, casa::AWVisResampler, casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
pure virtual |
Implemented in casa::ProtoVR, casa::MultiThreadedVisibilityResampler, casa::AWVisResampler, and casa::VisibilityResampler.
|
inline |
Aliases for more readable code at the FTMachine layer.
Definition at line 124 of file VisibilityResamplerBase.h.
References GatherGrids().
|
inline |
Definition at line 126 of file VisibilityResamplerBase.h.
References GatherGrids().
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
Referenced by finalizeToSky().
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
|
inline |
Definition at line 132 of file VisibilityResamplerBase.h.
References cfMap_p.
|
inline |
Definition at line 133 of file VisibilityResamplerBase.h.
References conjCFMap_p.
|
inlineprotected |
|
inlineprotected |
restrict
Definition at line 252 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 257 of file VisibilityResamplerBase.h.
|
inlineprotected |
restrict
Definition at line 263 of file VisibilityResamplerBase.h.
|
inlineprotected |
The following two methods are called in the innermost loop.
restrict
Definition at line 270 of file VisibilityResamplerBase.h.
References getFrom4DArray(), and inc_p.
|
inlineprotected |
restrict
Definition at line 274 of file VisibilityResamplerBase.h.
References getFrom4DArray(), and inc_p.
|
inline |
Definition at line 138 of file VisibilityResamplerBase.h.
References vbRow2CFBMap_p.
|
inline |
Definition at line 137 of file VisibilityResamplerBase.h.
References vbRow2CFMap_p.
|
pure virtual |
Re-sample VisBuffer to a regular grid (griddedData) (a.k.a. de-gridding)
Implemented in casa::ProtoVR, casa::MultiThreadedVisibilityResampler, casa::AWVisResampler, and casa::VisibilityResampler.
|
pure virtual |
Forward looking genealogical baggage – required for the MultiThreadedVisibilityResampler.
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
Referenced by initializeToSky().
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
|
inline |
Definition at line 128 of file VisibilityResamplerBase.h.
References initializePutBuffers().
|
inline |
Definition at line 130 of file VisibilityResamplerBase.h.
References initializePutBuffers().
|
virtual |
|
inlineprotected |
Definition at line 178 of file VisibilityResamplerBase.h.
|
inlineprotected |
Definition at line 185 of file VisibilityResamplerBase.h.
VisibilityResamplerBase& casa::VisibilityResamplerBase::operator= | ( | const VisibilityResamplerBase & | other | ) |
|
pure virtual |
Implemented in casa::VisibilityResampler, and casa::MultiThreadedVisibilityResampler.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, casa::VisibilityResampler, casa::AWVisResampler, and casa::ProtoVR.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
pure virtual |
Implemented in casa::MultiThreadedVisibilityResampler, and casa::VisibilityResampler.
|
protected |
|
protected |
Definition at line 162 of file VisibilityResamplerBase.h.
Referenced by casa::ProtoVR::copyMaps(), casa::AWVisResampler::copyMaps(), getCFMap(), and casa::ProtoVR::setCFMaps().
|
protected |
Definition at line 156 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setMaps().
|
protected |
Definition at line 162 of file VisibilityResamplerBase.h.
Referenced by casa::ProtoVR::copyMaps(), casa::AWVisResampler::copyMaps(), getConjCFMap(), and casa::ProtoVR::setCFMaps().
|
protected |
Definition at line 158 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setConvFunc().
|
protected |
Definition at line 155 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::getParams(), and casa::VisibilityResampler::setParams().
|
protected |
casacore::Int inc0_p, inc1_p, inc2_p, inc3_p;
Definition at line 160 of file VisibilityResamplerBase.h.
Referenced by cacheAxisIncrements(), and getFrom4DArray().
|
protected |
Definition at line 161 of file VisibilityResamplerBase.h.
Referenced by addTo4DArray(), and cacheAxisIncrements().
|
protected |
Definition at line 155 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::getParams(), and casa::VisibilityResampler::setParams().
|
protected |
Definition at line 165 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setPATolerance(), and casa::MultiThreadedVisibilityResampler::setPATolerance().
|
protected |
Definition at line 156 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setMaps().
casacore::Double casa::VisibilityResamplerBase::runTimeDG_p |
Definition at line 146 of file VisibilityResamplerBase.h.
Referenced by casa::ProtoVR::ProtoVR().
casacore::Double casa::VisibilityResamplerBase::runTimeG1_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG2_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG3_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG4_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG5_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG6_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG7_p |
Definition at line 146 of file VisibilityResamplerBase.h.
casacore::Double casa::VisibilityResamplerBase::runTimeG_p |
Definition at line 146 of file VisibilityResamplerBase.h.
Referenced by casa::ProtoVR::ProtoVR().
|
protected |
Definition at line 157 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setFreqMaps().
|
protected |
Definition at line 157 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::setFreqMaps().
casacore::Timer casa::VisibilityResamplerBase::timer_p |
Definition at line 147 of file VisibilityResamplerBase.h.
|
protected |
private:
Definition at line 155 of file VisibilityResamplerBase.h.
Referenced by casa::VisibilityResampler::getParams(), and casa::VisibilityResampler::setParams().
|
protected |
Definition at line 164 of file VisibilityResamplerBase.h.
Referenced by getVBRow2CFBMap().
|
protected |
Definition at line 163 of file VisibilityResamplerBase.h.
Referenced by getVBRow2CFMap().