An alternative representation of ring elements. More...
#include <vector>
#include <NTL/ZZX.h>
#include <NTL/lzz_pX.h>
#include "NumbTh.h"
#include "IndexMap.h"
#include "FHEContext.h"
Go to the source code of this file.
Classes | |
class | AltCRTHelper |
A helper class to enforce consistency within an AltCRT object. More... | |
class | AltCRT |
A single-CRT representation of a ring element. More... | |
Functions | |
void | conv (AltCRT &d, const ZZX &p) |
AltCRT | to_AltCRT (const ZZX &p) |
void | conv (ZZX &p, const AltCRT &d) |
ZZX | to_ZZX (const AltCRT &d) |
void | conv (AltCRT &d, const SingleCRT &s) |
An alternative representation of ring elements.
The AltCRT module offers a drop-in replacement to DoubleCRT, it exposes the same interface but internally uses a single-CRT representation. That is, polynomials are stored in coefficient representation, modulo each of the small primes in our chain. Currently this class is used only for testing and debugging purposes.