mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2026-01-14 04:59:33 +00:00
support for variable naming for function, model and data
This commit is contained in:
@@ -29,6 +29,7 @@ using namespace Latan;
|
||||
// constructor /////////////////////////////////////////////////////////////////
|
||||
DoubleFunction::DoubleFunction(const vecFunc &f, const Index nArg)
|
||||
: buffer_(new DVec)
|
||||
, varName_("x")
|
||||
{
|
||||
setFunction(f, nArg);
|
||||
}
|
||||
@@ -45,6 +46,16 @@ void DoubleFunction::setFunction(const vecFunc &f, const Index nArg)
|
||||
f_ = f;
|
||||
}
|
||||
|
||||
VarName & DoubleFunction::varName(void)
|
||||
{
|
||||
return varName_;
|
||||
}
|
||||
|
||||
const VarName & DoubleFunction::varName(void) const
|
||||
{
|
||||
return varName_;
|
||||
}
|
||||
|
||||
// error checking //////////////////////////////////////////////////////////////
|
||||
void DoubleFunction::checkSize(const Index nPar) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user