29 #ifndef SCIMATH_CONSTANT_H
30 #define SCIMATH_CONSTANT_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/scimath/Functionals/ConstantNDParam.h>
35 #include <casacore/scimath/Functionals/Function.h>
36 #include <casacore/scimath/Mathematics/AutoDiff.h>
37 #include <casacore/scimath/Mathematics/AutoDiffMath.h>
150 #define ConstantND_PS ConstantND
176 ConstantND_PS<AutoDiff<T> > &
194 return new ConstantND_PS<AutoDiff<T> >(*this); };
200 *cloneNonAD()
const {
217 #ifndef CASACORE_NO_AUTO_TEMPLATES
218 #include <casacore/scimath/Functionals/ConstantND.tcc>
ConstantNDParam< T > & operator=(const ConstantNDParam< T > &other)
Copy assignment (deep copy)
ConstantND< T > & operator=(const ConstantND< T > &other)
ConstantND(const ConstantND< T > &other)
Copy constructor/assignment (deep copy)
virtual ~ConstantND()
Destructor.
virtual Function< typename FunctionTraits< T >::DiffType > * cloneAD() const
virtual T eval(typename Function< T >::FunctionArg x) const
Evaluate the hyper plane function at (x0,x1,..,xm-1).
ConstantND(const uInt m=0)
Construct a constant in an a space of dimensionality m.
virtual Function< typename FunctionTraits< T >::BaseType > * cloneNonAD() const
ConstantND(const ConstantND< W > &other)
virtual Function< T > * clone() const
Return a copy of this object from the heap.
const ArgType * FunctionArg
this file contains all the compiler specific defines
PtrHolder< T > & operator=(const PtrHolder< T > &other)