Any Efficient Multiplication with a Primitive Root over Prime Field?
$begingroup$
Description: to multiply the "complex unit" $w^{N/4}$ over a prime field, i.e., $w^N equiv 1 bmod (,p)$ (suppose $p, N$ do provide such primitive root).
- I am implementing the radix-4 Number Theoretic Transform which involves the multiplications with the complex unit "$j$".
- It seems that in the complex domain, multiplication with the complex unit is "almost" free, i.e., $a + bj to -b + aj$. That is one of the reasons that radix-4 FFT can save more number of multiplications compared with the radix-2 implementation.
- However, over the prime field, I have no idea whether this free multiplication is possible or not.
Thanks.
fast-fourier-transform
$endgroup$
add a comment |
$begingroup$
Description: to multiply the "complex unit" $w^{N/4}$ over a prime field, i.e., $w^N equiv 1 bmod (,p)$ (suppose $p, N$ do provide such primitive root).
- I am implementing the radix-4 Number Theoretic Transform which involves the multiplications with the complex unit "$j$".
- It seems that in the complex domain, multiplication with the complex unit is "almost" free, i.e., $a + bj to -b + aj$. That is one of the reasons that radix-4 FFT can save more number of multiplications compared with the radix-2 implementation.
- However, over the prime field, I have no idea whether this free multiplication is possible or not.
Thanks.
fast-fourier-transform
$endgroup$
1
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
1
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
1
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
1
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
1
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23
add a comment |
$begingroup$
Description: to multiply the "complex unit" $w^{N/4}$ over a prime field, i.e., $w^N equiv 1 bmod (,p)$ (suppose $p, N$ do provide such primitive root).
- I am implementing the radix-4 Number Theoretic Transform which involves the multiplications with the complex unit "$j$".
- It seems that in the complex domain, multiplication with the complex unit is "almost" free, i.e., $a + bj to -b + aj$. That is one of the reasons that radix-4 FFT can save more number of multiplications compared with the radix-2 implementation.
- However, over the prime field, I have no idea whether this free multiplication is possible or not.
Thanks.
fast-fourier-transform
$endgroup$
Description: to multiply the "complex unit" $w^{N/4}$ over a prime field, i.e., $w^N equiv 1 bmod (,p)$ (suppose $p, N$ do provide such primitive root).
- I am implementing the radix-4 Number Theoretic Transform which involves the multiplications with the complex unit "$j$".
- It seems that in the complex domain, multiplication with the complex unit is "almost" free, i.e., $a + bj to -b + aj$. That is one of the reasons that radix-4 FFT can save more number of multiplications compared with the radix-2 implementation.
- However, over the prime field, I have no idea whether this free multiplication is possible or not.
Thanks.
fast-fourier-transform
fast-fourier-transform
edited Jan 21 at 5:49
Fionser
asked Jan 21 at 5:03


FionserFionser
114
114
1
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
1
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
1
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
1
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
1
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23
add a comment |
1
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
1
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
1
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
1
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
1
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23
1
1
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
1
1
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
1
1
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
1
1
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
1
1
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3081534%2fany-efficient-multiplication-with-a-primitive-root-over-prime-field%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3081534%2fany-efficient-multiplication-with-a-primitive-root-over-prime-field%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
Finite field multiplication is always almost free when representing elements as powers of a primitive root. Also, you don't always have a "complex unit" (i.e., -1 is not always a square). So maybe you can clarify what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 5:40
1
$begingroup$
@MorganRodgers Suppose that a such complex unit do exist, such as when $p = 1 bmod 2N$. Thank your for the answer.
$endgroup$
– Fionser
Jan 21 at 5:51
1
$begingroup$
Then yes, if $alpha$ is primitive element of $mathbb{F}_{q}$ and $j = alpha^{frac{q-1}{4}}$ then $j^{2} = -1$ and so $j(a+bj) = -b+aj$. Is this what you are asking?
$endgroup$
– Morgan Rodgers
Jan 21 at 6:20
1
$begingroup$
No, I mean for complex numbers, we only need to switch its real part and image part for multiplying with $j$, which is almost free. However, for a prime field, the $j$ is given as an integer $alpha^{q-1/4}$. To multiply $alpha^{q-1/4}$ with any element in the prime field, it seems we need to do the expensive integer multiplication followed with a modulus correction step.
$endgroup$
– Fionser
Jan 21 at 9:59
1
$begingroup$
Usually finite field multiplication is done using a table lookup (see Zech's logarithms).
$endgroup$
– Morgan Rodgers
Jan 21 at 17:23