26#ifndef SCIMATH_FUNCTIONPARAM_H
27#define SCIMATH_FUNCTIONPARAM_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Arrays/Vector.h>
32#include <casacore/scimath/Functionals/FunctionTraits.h>
35#include <casacore/casa/iosfwd.h>
208 return par.
print(os); }
213#ifndef CASACORE_NO_AUTO_TEMPLATES
214#include <casacore/scimath/Functionals/FunctionParam.tcc>
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 operator!=(const FunctionParam< T > &other) const
virtual ~FunctionParam()
Destructor.
const Bool & mask(const uInt n) const
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.
uInt nMaskedParameters() const
Operations on the masked parameters only.
T & parameter(const uInt n)
Manipulate the nth parameter (0-based) with no index check.
Bool & mask(const uInt n)
Manipulate the mask associated with the nth parameter (e.g.
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.
void clearMaskedPtr() const
Clear the masked parameter list.
void setParamMasks(const Vector< Bool > &masks)
Set all parameter masks at once.
FunctionParam & operator=(const FunctionParam< T > &other)
Copy assignment (deep copy)
FunctionParam(const FunctionParam< W > &other)
Copy from different type (deep copy)
ostream & print(ostream &os) const
Output the parameters.
const T & parameter(const uInt n) const
void setMaskedParameters(Vector< T > &in)
const T & operator[](const uInt n) const
uInt npar_p
Number of parameters.
FunctionParam(const FunctionParam< T > &other)
Copy constructor (deep copy)
Vector< T > * maskedPtr_p
Cached masked data.
Vector< T > & getMaskedParameters() const
All masked parameters only.
T & operator[](const uInt n)
Manipulate the nth parameter (0-based) with no index check.
Vector< T > param_p
Parameters.
void createMaskedPtr() const
Create a cached version of the masked parameter list.
const Vector< T > & getParameters() const
Get all parameters at once.
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
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const FunctionParam< T > &par)
Output declaration.