1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-04-05 09:35:54 +01:00

const-correctness fix

This commit is contained in:
Antonin Portelli 2019-04-04 20:04:56 +01:00
parent cb2f6bf0aa
commit 11ecea3c6d
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ DoubleFunction DoubleFunction::bind(const Index argIndex,
}
// sample //////////////////////////////////////////////////////////////////////
DVec DoubleFunction::sample(const DMat &x)
DVec DoubleFunction::sample(const DMat &x) const
{
if (x.cols() != getNArg())
{

View File

@ -57,7 +57,7 @@ public:
DoubleFunction bind(const Index argIndex, const double val) const;
DoubleFunction bind(const Index argIndex, const DVec &x) const;
// sample
DVec sample(const DMat &x);
DVec sample(const DMat &x) const;
// arithmetic operators
DoubleFunction operator-(void) const;
DoubleFunction & operator+=(const DoubleFunction &f);