View source: R/key-switching.R
| key_switch_ext | R Documentation |
Hybrid key switching works in an extended basis P*Q and comes
back to Q at the end. These functions expose two of its steps,
for code that hoists or defers them (CKKS). key_switch_ext()
takes a ciphertext to the extended basis, multiplying its elements
by P; with add_first = FALSE the first element of the result is
left at zero. key_switch_down_first_element() brings only the
first element back to Q and returns it as a ring element.
key_switch_down() brings a whole ciphertext back.
key_switch_ext(ct, add_first)
key_switch_down_first_element(ct)
ct |
A |
add_first |
Logical. |
key_switch_ext(): a Ciphertext in the extended basis.
key_switch_down_first_element(): a DCRTPoly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.