Re: [Numpy-discussion] Polynomial evaluation inconsistencies

2018-07-01 Thread Eric Wieser
I think the `x` is just noise there, especially if it's ignored (that is, `T[0](x*2)` doesn't do anything reasonable). Chebyshev.literal(lambda T: 1*T[0] + 2*T[1] + 3*T[2]) Would work, but honestly I don't think that provides much clarity. I think the value here is mainly for "simple" polynom

Re: [Numpy-discussion] Polynomial evaluation inconsistencies

2018-07-01 Thread Maxwell Aifer
Say we add a constructor to the polynomial base class that looks something like this: --- @classmethod def literal(cls, f): def basis_function_getter(self, deg): coefs = [0]*deg + [1

[Numpy-discussion] Proposal to accept NEP 19: Random Number Generator Policy

2018-07-01 Thread Robert Kern
I propose that we accept NEP 19: Random Number Generator Policy: http://www.numpy.org/neps/nep-0019-rng-policy.html The discussions on this NEP were productive and led to a major revision in how stable random number streams will be maintained in the future for the purpose of unit testing. The c