Ticket #8855: boost-1.54.0-math-unused_typedef.patch

File boost-1.54.0-math-unused_typedef.patch, 949 bytes (added by pmachata@…, 9 years ago)

Another unused typedef is in math/distributions/inverse_gaussian.hpp

  • boost_1_54_0/boost/math/distributions/inverse_gaussian.hpp

    diff -up boost_1_54_0/boost/math/distributions/inverse_gaussian.hpp~ boost_1_54_0/boost/math/distributions/inverse_gaussian.hpp
    old new namespace detail  
    285285
    286286      // Define the distribution, using gamma_nooverflow:
    287287      typedef gamma_distribution<RealType, no_overthrow_policy> gamma_nooverflow;
     288      gamma_nooverflow g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
    288289
    289       gamma_distribution<RealType, no_overthrow_policy> g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
    290 
    291       // gamma_nooverflow g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
    292290      // R qgamma(0.2, 0.5, 1)  0.0320923
    293291      RealType qg = quantile(complement(g, p));
    294292      //RealType qg1 = qgamma(1.- p, 0.5, 1.0, true, false);