Explore >> Select a destination


You are here

fredrikj.net
| | www.jeremykun.com
8.2 parsecs away

Travel
| | Problem: Compute the product of two polynomials efficiently. Solution: import numpy from numpy.fft import fft, ifft def poly_mul(p1, p2): """Multiply two polynomials. p1 and p2 are arrays of coefficients in degree-increasing order. """ deg1 = p1.shape[0] - 1 deg2 = p1.shape[0] - 1 # Would be 2*(deg1 + deg2) + 1, but the next-power-of-2 handles the +1 total_num_pts = 2 * (deg1 + deg2) next_power_of_2 = 1 << (total_num_pts - 1).
| | deniskyashif.com
7.2 parsecs away

Travel
| | How to define a recursive function in a language which doesn't support recursion using the Y combinator.
| | cp4space.hatsya.com
8.6 parsecs away

Travel
| | At the end of the recent post on a combinatorial proof of Houston's identity, I ended with the following paragraph: This may seem paradoxical, but there's an analogous situation in fast matrix multiplication: the best known upper bound for the tensor rank of 4-by-4 matrix multiplication is 49, by applying two levels of Strassen's algorithm,...
| | blog.ml.cmu.edu
37.8 parsecs away

Travel
| The latest news and publications regarding machine learning, artificial intelligence or related, brought to you by the Machine Learning Blog, a spinoff of the Machine Learning Department at Carnegie Mellon University.