mirror of
				https://github.com/aportelli/LatAnalyze.git
				synced 2025-11-04 08:04:32 +00:00 
			
		
		
		
	compatibility fix: __unused changed to __dumb
This commit is contained in:
		@@ -35,7 +35,7 @@ namespace MATH_NAMESPACE
 | 
			
		||||
{
 | 
			
		||||
    // integer power function
 | 
			
		||||
    template <unsigned int n, typename T>
 | 
			
		||||
    typename std::enable_if<(n == 0), T>::type pow(const T x __unused)
 | 
			
		||||
    typename std::enable_if<(n == 0), T>::type pow(const T x __dumb)
 | 
			
		||||
    {
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -462,7 +462,7 @@ void VarNode::compile(Program &program, RunContext &context) const
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// CstNode compile /////////////////////////////////////////////////////////////
 | 
			
		||||
void CstNode::compile(Program &program, RunContext &context __unused) const
 | 
			
		||||
void CstNode::compile(Program &program, RunContext &context __dumb) const
 | 
			
		||||
{
 | 
			
		||||
    PUSH_INS(program, Push, strTo<double>(getName()));
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -43,7 +43,7 @@ double Minimizer::getHighLimit(const Index i) const
 | 
			
		||||
    return highLimit_(i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const DVec & Minimizer::getHighLimit(const PlaceHolder ph __unused) const
 | 
			
		||||
const DVec & Minimizer::getHighLimit(const PlaceHolder ph __dumb) const
 | 
			
		||||
{
 | 
			
		||||
    return highLimit_;
 | 
			
		||||
}
 | 
			
		||||
@@ -53,7 +53,7 @@ double Minimizer::getLowLimit(const Index i) const
 | 
			
		||||
    return lowLimit_(i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const DVec & Minimizer::getLowLimit(const PlaceHolder ph __unused) const
 | 
			
		||||
const DVec & Minimizer::getLowLimit(const PlaceHolder ph __dumb) const
 | 
			
		||||
{
 | 
			
		||||
    return lowLimit_;
 | 
			
		||||
}
 | 
			
		||||
@@ -81,7 +81,7 @@ void Minimizer::setHighLimit(const Index i, const double l)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Minimizer::setHighLimit(const PlaceHolder ph __unused, const DVec &l)
 | 
			
		||||
void Minimizer::setHighLimit(const PlaceHolder ph __dumb, const DVec &l)
 | 
			
		||||
{
 | 
			
		||||
    if (l.size() != getDim())
 | 
			
		||||
    {
 | 
			
		||||
@@ -107,7 +107,7 @@ void Minimizer::setLowLimit(const Index i, const double l)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Minimizer::setLowLimit(const PlaceHolder ph __unused, const DVec &l)
 | 
			
		||||
void Minimizer::setLowLimit(const PlaceHolder ph __dumb, const DVec &l)
 | 
			
		||||
{
 | 
			
		||||
    if (l.size() != getDim())
 | 
			
		||||
    {
 | 
			
		||||
@@ -132,7 +132,7 @@ void Minimizer::useHighLimit(const Index i, const bool use)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Minimizer::useHighLimit(const PlaceHolder ph __unused, const bool use)
 | 
			
		||||
void Minimizer::useHighLimit(const PlaceHolder ph __dumb, const bool use)
 | 
			
		||||
{
 | 
			
		||||
    hasHighLimit_.fill(use);
 | 
			
		||||
}
 | 
			
		||||
@@ -149,7 +149,7 @@ void Minimizer::useLowLimit(const Index i, const bool use)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Minimizer::useLowLimit(const PlaceHolder ph __unused, const bool use)
 | 
			
		||||
void Minimizer::useLowLimit(const PlaceHolder ph __dumb, const bool use)
 | 
			
		||||
{
 | 
			
		||||
    hasLowLimit_.fill(use);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@ double MinuitMinimizer::getPrecision(void) const
 | 
			
		||||
    return 0.;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void MinuitMinimizer::setPrecision(const double precision __unused)
 | 
			
		||||
void MinuitMinimizer::setPrecision(const double precision __dumb)
 | 
			
		||||
{
 | 
			
		||||
    LATAN_ERROR(Implementation,
 | 
			
		||||
                "Minuit minimizer precision cannot be accessed");
 | 
			
		||||
 
 | 
			
		||||
@@ -247,7 +247,7 @@ namespace ReducOp
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    template <typename T>
 | 
			
		||||
    inline T tensProd(const T &v1 __unused, const T &v2 __unused)
 | 
			
		||||
    inline T tensProd(const T &v1 __dumb, const T &v2 __dumb)
 | 
			
		||||
    {
 | 
			
		||||
        LATAN_ERROR(Implementation,
 | 
			
		||||
                    "tensorial product not implemented for this type");
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ double SampleFitResult::getChi2(const Index s) const
 | 
			
		||||
    return chi2_[s];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const DSample & SampleFitResult::getChi2(const PlaceHolder ph __unused) const
 | 
			
		||||
const DSample & SampleFitResult::getChi2(const PlaceHolder ph __dumb) const
 | 
			
		||||
{
 | 
			
		||||
    return chi2_;
 | 
			
		||||
}
 | 
			
		||||
@@ -41,7 +41,7 @@ double SampleFitResult::getChi2PerDof(const Index s) const
 | 
			
		||||
    return chi2_[s]/getNDof();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DSample SampleFitResult::getChi2PerDof(const PlaceHolder ph __unused) const
 | 
			
		||||
DSample SampleFitResult::getChi2PerDof(const PlaceHolder ph __dumb) const
 | 
			
		||||
{
 | 
			
		||||
    return chi2_/getNDof();
 | 
			
		||||
}
 | 
			
		||||
@@ -58,7 +58,7 @@ const DoubleFunction & SampleFitResult::getModel(const Index s,
 | 
			
		||||
}
 | 
			
		||||
                                    
 | 
			
		||||
const DoubleFunctionSample & SampleFitResult::getModel(
 | 
			
		||||
                                                const PlaceHolder ph __unused,
 | 
			
		||||
                                                const PlaceHolder ph __dumb,
 | 
			
		||||
                                                const Index j) const
 | 
			
		||||
{
 | 
			
		||||
    return model_[static_cast<unsigned int>(j)];
 | 
			
		||||
@@ -94,23 +94,23 @@ void XYSampleData::resize(const Index nData, const Index xDim,
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
    
 | 
			
		||||
    return x_.block(0, 0, getNData(), getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                               const PlaceHolder ph2 __unused)
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                               const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                               const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, 0, getNData(), getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::x(const Index i, 
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
    
 | 
			
		||||
@@ -118,13 +118,13 @@ XYSampleData::SampleBlock XYSampleData::x(const Index i,
 | 
			
		||||
}
 | 
			
		||||
                                          
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::x(const Index i,
 | 
			
		||||
                                               const PlaceHolder ph2 __unused)
 | 
			
		||||
                                               const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                               const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, i, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const Index k)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
@@ -132,7 +132,7 @@ XYSampleData::SampleBlock XYSampleData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
    return x_.block(k, 0, 1, getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                               const Index k) const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(k, 0, 1, getXDim());
 | 
			
		||||
@@ -151,23 +151,23 @@ XYSampleData::ConstSampleBlock XYSampleData::x(const Index i, const Index k)
 | 
			
		||||
    return x_.block(k, i, 1, 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
    
 | 
			
		||||
    return y_.block(0, 0, getNData(), getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                               const PlaceHolder ph2 __unused)
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                               const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                               const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, 0, getNData(), getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::y(const Index j, 
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
    
 | 
			
		||||
@@ -175,13 +175,13 @@ XYSampleData::SampleBlock XYSampleData::y(const Index j,
 | 
			
		||||
}
 | 
			
		||||
                                          
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::y(const Index j,
 | 
			
		||||
                                               const PlaceHolder ph2 __unused)
 | 
			
		||||
                                               const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                               const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, j, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
XYSampleData::SampleBlock XYSampleData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const Index k)
 | 
			
		||||
{
 | 
			
		||||
    isCovarianceInit_ = false;
 | 
			
		||||
@@ -189,7 +189,7 @@ XYSampleData::SampleBlock XYSampleData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
    return y_.block(k, 0, 1, getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
XYSampleData::ConstSampleBlock XYSampleData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                               const Index k) const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(k, 0, 1, getYDim());
 | 
			
		||||
 
 | 
			
		||||
@@ -89,39 +89,39 @@ void XYStatData::reinitChi2(const bool doReinit)
 | 
			
		||||
    reinitChi2_ = doReinit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                     const PlaceHolder ph2 __unused)
 | 
			
		||||
Block<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                     const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, 0, getNData(), getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                          const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, 0, getNData(), getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::x(const Index i,
 | 
			
		||||
                                     const PlaceHolder ph2 __unused)
 | 
			
		||||
                                     const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, i, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::x(const Index i,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                          const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(0, i, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
Block<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                     const Index k)
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(k, 0, 1, getXDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __unused,
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::x(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const Index k) const
 | 
			
		||||
{
 | 
			
		||||
    return x_.block(k, 0, 1, getXDim());
 | 
			
		||||
@@ -137,38 +137,38 @@ const double & XYStatData::x(const Index i, const Index k) const
 | 
			
		||||
    return x_(k, i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                     const PlaceHolder ph2 __unused)
 | 
			
		||||
Block<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                     const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, 0, getNData(), getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                          const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, 0, getNData(), getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::y(const Index j,
 | 
			
		||||
                                     const PlaceHolder ph2 __unused)
 | 
			
		||||
                                     const PlaceHolder ph2 __dumb)
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, j, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::y(const Index j,
 | 
			
		||||
                                          const PlaceHolder ph2 __unused)
 | 
			
		||||
                                          const PlaceHolder ph2 __dumb)
 | 
			
		||||
                                          const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(0, j, getNData(), 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Block<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __unused, const Index k)
 | 
			
		||||
Block<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __dumb, const Index k)
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(k, 0, 1, getYDim());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __unused,
 | 
			
		||||
ConstBlock<MatBase<double>> XYStatData::y(const PlaceHolder ph1 __dumb,
 | 
			
		||||
                                          const Index k) const
 | 
			
		||||
{
 | 
			
		||||
    return y_.block(k, 0, 1, getYDim());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user