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