[Numpy-discussion] addition, multiplication of a polynomial and np.{float, int}
Hi, >>> np.__version__ '1.7.0.dev-7c07089' >>> p = np.poly1d([1,1]) >>> p + 1.0 poly1d([ 1., 2.]) >>> p + np.float64(1) poly1d([ 1., 2.]) >>> np.float64(1.0) + p array([ 2., 2.]) >>> np.int64(1) + p array([2, 2]) >>> np.int(1) + p poly1d([1, 2
Re: [Numpy-discussion] Repeated dot products
Le samedi 12 décembre 2009 à 01:55 -0800, T J a écrit : > Is there a better way? You may have a look at http://scipy.org/Cookbook/MultiDot Several alternatives are proposed. Cheers, -- Denis ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org