29 #ifndef SCIMATH_GRIDDER_H
30 #define SCIMATH_GRIDDER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Array.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/Arrays/Matrix.h>
45 template <
class Domain,
class Range>
57 const Range&
value) = 0;
111 #ifndef CASACORE_NO_AUTO_TEMPLATES
112 #include <casacore/scimath/Mathematics/Gridder.tcc>
virtual Bool onGrid(const Vector< Domain > &pos)
void setOffset(const Vector< Int > &off)
Vector< Vector< Range > > correctionVectors
virtual Bool grid(Array< Range > &, const Vector< Domain > &position, const Range &value)=0
virtual Bool onGrid(const Vector< Int > &loc)
Gridder(const IPosition &shape, const Vector< Domain > &scale, const Vector< Domain > &offset)
virtual void fillCorrectionVectors()
void setOffset(const IPosition &off)
virtual Bool degrid(const Array< Range > &, const Vector< Domain > &position, Range &value)=0
virtual Range correctionFactor1D(Int loc, Int len)=0
Correction factor for 1 dimension.
Vector< Int > zeroShapeVec
virtual Range correct(const IPosition &loc)
Vector< Domain > & position(Vector< Domain > &gpos, const Vector< Domain > &pos)
Vector< Int > & location(Vector< Int > &loc, const Vector< Domain > &pos)
virtual void correctX1D(Vector< Range > &factor, const Int locy)
Return a correction vector in x for loc y.
virtual Bool onGrid(const Vector< Int > &loc, const Vector< Int > &delta)
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
LatticeExprNode floor(const LatticeExprNode &expr)