remove_variables_from_polynomial_chaos_expansion

pyapprox.multivariate_polynomials.remove_variables_from_polynomial_chaos_expansion(poly, inactive_idx)[source]

This function is not optimal. It will recreate the options used to configure the polynomial. Any recursion coefficients calculated which are still relevant will need to be computed. This is probably not a large overhead though