diff --git a/MParT/MonotoneComponent.h b/MParT/MonotoneComponent.h index aa7744fb..d5fab1d5 100644 --- a/MParT/MonotoneComponent.h +++ b/MParT/MonotoneComponent.h @@ -312,16 +312,6 @@ class MonotoneComponent : public ConditionalMapBase StridedVector output, std::map options=std::map()) { - // std::cout << "xs.shape = " << xs.extent(0) << "," << xs.extent(1) << std::endl; - // std::cout << "xs = \n" << std::endl; - // for(unsigned int row=0; row QuadratureType const& quad, ExpansionType const& expansion) { - // std::cout << "pt = " << std::endl; - // for(unsigned int i=0; i integrand(cache, @@ -1006,148 +986,13 @@ class MonotoneComponent : public ConditionalMapBase DerivativeFlags::None); quad.Integrate(workspace, integrand, 0, 1, &output); - // std::cout << "output 1 = " << output << std::endl; - - // Finish filling in the cache for an evaluation of the expansion with x_d=0 - // std::cout << "pt = " << std::endl; - // for(unsigned int i=0; imaxIts) - // ProcAgnosticError::error("InverseSingleBracket: upper bound calculation exceeds maxIts"); - // } - - // assert(ylb0)?1.0:-1.0; // sign(xb-xf) - // delta = fmin(k1*pow((xub-xlb), k2), fabs(xb-xf)); - - // xf += delta*sigma; - - // rho = fmin(xtol*pow(2.0, nhalf + n0 - it) - 0.5*(xub-xlb), fabs(xf - xb)); - // xc = xb - sigma*rho; - - // yc = EvaluateSingle(workspace, cache, pt, xc, coeffs, quad, expansion); - - // if(abs(yc-yd)yd){ - // mpart::simple_swap(yc,yub); - // mpart::simple_swap(xc,xub); - // }else{ - // mpart::simple_swap(yc,ylb); - // mpart::simple_swap(xc,xlb); - // } - - // // Check for convergence - // if(((xub-xlb)maxIts) - // ProcAgnosticError::error("InverseSingleBracket: Bracket search iterations exceeds maxIts"); - // return 0.5*(xub+xlb); - // } - /** Give access to the underlying FixedMultiIndexSet * @return The FixedMultiIndexSet */