We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a75ea commit 9ad5848Copy full SHA for 9ad5848
src/sage/rings/generic.py
@@ -28,6 +28,8 @@ class ProductTree:
28
sage: ms = [x - a^i for i in range(1024)] # roots of unity
29
sage: ys = [F.random_element() for _ in range(1024)] # input vector
30
sage: zs = ProductTree(ms).remainders(R(ys)) # compute FFT!
31
+ sage: zs == [R(ys) % m for m in ms]
32
+ True
33
34
This class encodes the tree as *layers*: Layer `0` is just a tuple
35
of the leaves. Layer `i+1` is obtained from layer `i` by replacing
0 commit comments