28 #ifndef SCIMATH_FUNCTIONPARAM_H
29 #define SCIMATH_FUNCTIONPARAM_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/scimath/Functionals/FunctionTraits.h>
37 #include <casacore/casa/iosfwd.h>
210 return par.
print(os); }
215 #ifndef CASACORE_NO_AUTO_TEMPLATES
216 #include <casacore/scimath/Functionals/FunctionParam.tcc>
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
FunctionParam(const Vector< T > &in)
Construct a FunctionParam from the given vector, with all masks True
FunctionParam()
Construct a default FunctionParam with 0 parameters.
Bool & mask(const uInt n)
Manipulate the mask associated with the nth parameter (e.g.
Bool operator!=(const FunctionParam< T > &other) const
virtual ~FunctionParam()
Destructor.
const T & parameter(const uInt n) const
Vector< T > & getMaskedParameters() const
All masked parameters only.
void setParameters(const Vector< T > ¶ms)
Set all the parameters at once.
FunctionParam(const uInt n)
Construct a FunctionParam with n parameters with zero value and all masks True
uInt nelements() const
Return the number of parameters.
Vector< Bool > mask_p
Masks.
T & parameter(const uInt n)
Manipulate the nth parameter (0-based) with no index check.
uInt nMaskedParameters() const
Operations on the masked parameters only.
const T & operator[](const uInt n) const
Bool operator==(const FunctionParam< T > &other) const
Compare two parameter sets for equal size, values and masks.
ostream & print(ostream &os) const
Output the parameters.
void clearMaskedPtr() const
Clear the masked parameter list.
void setParamMasks(const Vector< Bool > &masks)
Set all parameter masks at once.
FunctionParam(const FunctionParam< W > &other)
Copy from different type (deep copy)
void setMaskedParameters(Vector< T > &in)
const Vector< Bool > & getParamMasks() const
Get all parameter masks at once.
uInt npar_p
Number of parameters.
FunctionParam(const FunctionParam< T > &other)
Copy constructor (deep copy)
Vector< T > * maskedPtr_p
Cached masked data.
T & operator[](const uInt n)
Manipulate the nth parameter (0-based) with no index check.
const Vector< T > & getParameters() const
Get all parameters at once.
FunctionParam & operator=(const FunctionParam< T > &other)
Copy assignment (deep copy)
Vector< T > param_p
Parameters.
void createMaskedPtr() const
Create a cached version of the masked parameter list.
const Bool & mask(const uInt n) const
static void setValue(T &out, const T &val, const uInt, const uInt)
Set a value (and possible derivative)
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.