1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

DoubleFunctionSample: constructor inheritance removed

This commit is contained in:
Antonin Portelli 2014-09-18 17:16:49 +01:00
parent c0bfb12bd7
commit c70008b895
2 changed files with 14 additions and 1 deletions

View File

@ -147,6 +147,16 @@ MAKE_SELF_SCALAR_OP(/)
/******************************************************************************
* DoubleFunctionSample implementation *
******************************************************************************/
// constructors ////////////////////////////////////////////////////////////////
DoubleFunctionSample::DoubleFunctionSample(void)
: Sample<DoubleFunction>()
{}
DoubleFunctionSample::DoubleFunctionSample(const Index nSample)
: Sample<DoubleFunction>(nSample)
{}
// function call ///////////////////////////////////////////////////////////////
DSample DoubleFunctionSample::operator()(const DMatSample &arg) const
{
DSample result(size());

View File

@ -156,7 +156,10 @@ class DoubleFunctionSample: public Sample<DoubleFunction>
{
public:
// constructors
using Sample<DoubleFunction>::Sample;
DoubleFunctionSample(void);
DoubleFunctionSample(const Index nSample);
EIGEN_EXPR_CTOR(DoubleFunctionSample, DoubleFunctionSample,
Sample<DoubleFunction>, ArrayExpr)
// destructor
virtual ~DoubleFunctionSample(void) = default;
// function call