14f8c06029dee29f6e3c801f69872c4ad426f79c,chaospy/quadrature/gauss_legendre.py,,quad_gauss_legendre,#Any#Any#Any#Any#Any#,53

Before Change


    weights = numpy.prod(combine(weights)*(upper-lower), -1)

    assert len(abscissas) == dim
    assert len(weights) == len(abscissas.T)

    return abscissas, weights

After Change


    abscissas = list(numpy.asarray(abscissas).reshape(dim, -1))
    weights = list(numpy.asarray(weights).reshape(dim, -1))

    return combine_quadrature(abscissas, weights, (lower, upper))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jonathf/chaospy
Commit Name: 14f8c06029dee29f6e3c801f69872c4ad426f79c
Time: 2019-08-10
Author: jonathf@gmail.com
File Name: chaospy/quadrature/gauss_legendre.py
Class Name:
Method Name: quad_gauss_legendre


Project Name: jonathf/chaospy
Commit Name: 14f8c06029dee29f6e3c801f69872c4ad426f79c
Time: 2019-08-10
Author: jonathf@gmail.com
File Name: chaospy/quadrature/clenshaw_curtis.py
Class Name:
Method Name: quad_clenshaw_curtis


Project Name: jonathf/chaospy
Commit Name: 14f8c06029dee29f6e3c801f69872c4ad426f79c
Time: 2019-08-10
Author: jonathf@gmail.com
File Name: chaospy/quadrature/fejer.py
Class Name:
Method Name: quad_fejer