Explore >> Select a destination


You are here

walkingrandomly.com
| | www.jeremykun.com
15.8 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).
| | nhigham.com
12.4 parsecs away

Travel
| | Sam Clark of T&T Productions, the copy editor for the third edition of MATLAB Guide (co-authored with Des Higham and to be published by SIAM in December 2016), recently asked whether we would like to change "row-wise" to "rowwise". A search of my hard disk reveals that I have always used the hyphen, probably because...
| | colleenyoung.org
15.8 parsecs away

Travel
| | 1 post published by Colleen Young on July 29, 2020
| | jeremykun.wordpress.com
53.1 parsecs away

Travel
| The Learning With Errors problem is the basis of a few cryptosystems, and a foundation for many fully homomorphic encryption (FHE) schemes. In this article I'll describe a technique used in some of these schemes called modulus switching. In brief, an LWE sample is a vector of values in $\mathbb{Z}/q\mathbb{Z}$ for some $q$, and in...