12 #ifndef HELIB_PRIMECHAIN_H
13 #define HELIB_PRIMECHAIN_H
19 #include <helib/IndexSet.h>
30 typedef std::pair<double, IndexSet>
Entry;
63 void read(std::istream& str);
64 void write(std::ostream& str)
const;
67 std::vector<Entry> sizes;
78 #endif // ifndef HELIB_PRIMECHAIN_H
void init(const Context &context)
initialize helper table for a given chain
Definition: primeChain.cpp:58
void read(std::istream &s, ModuliSizes::Entry &e)
Definition: primeChain.cpp:51
A dynamic set of non-negative integers.
Definition: IndexSet.h:31
friend std::istream & operator>>(std::istream &s, ModuliSizes &szs)
Definition: primeChain.cpp:330
IndexSet getSet4Size(double low, double high, const IndexSet &fromSet, bool reverse) const
Definition: primeChain.cpp:168
Definition: apiAttributes.h:21
friend std::ostream & operator<<(std::ostream &s, const ModuliSizes &szs)
Definition: primeChain.cpp:326
std::pair< double, IndexSet > Entry
Definition: primeChain.h:30
A helper class to map required modulo-sizes to primeSets.
Definition: primeChain.h:28
std::ostream & operator<<(std::ostream &s, const SKHandle &handle)
Definition: Ctxt.h:190
Maintaining the parameters.
Definition: Context.h:121
void write(std::ostream &str) const
Definition: primeChain.cpp:342
void write(std::ostream &s, const ModuliSizes::Entry &e)
Definition: primeChain.cpp:45
std::istream & operator>>(std::istream &s, CtxtPart &p)
Definition: Ctxt.cpp:2206
void read(std::istream &str)
Definition: primeChain.cpp:349
void reverse(NTL::Vec< T > &v, long lo, long hi)
Reverse a vector in place.
Definition: NumbTh.h:663