helib::DynamicCtxtPowers Class Reference
Store powers of X, compute them dynamically as needed. More...
#include <polyEval.h>
Public Member Functions | |
| DynamicCtxtPowers (const Ctxt &c, long nPowers) | |
| Ctxt & | getPower (long e) |
| Returns the e'th power, computing it as needed. More... | |
| Ctxt & | at (long i) |
| dp.at(i) and dp[i] both return the i+1st power More... | |
| Ctxt & | operator[] (long i) |
| const std::vector< Ctxt > & | getVector () const |
| long | size () const |
| bool | isPowerComputed (long i) |
Detailed Description
Store powers of X, compute them dynamically as needed.
Constructor & Destructor Documentation
◆ DynamicCtxtPowers()
|
inline |
Member Function Documentation
◆ at()
|
inline |
dp.at(i) and dp[i] both return the i+1st power
◆ getPower()
| Ctxt & helib::DynamicCtxtPowers::getPower | ( | long | e | ) |
Returns the e'th power, computing it as needed.
◆ getVector()
|
inline |
◆ isPowerComputed()
|
inline |
◆ operator[]()
|
inline |
◆ size()
|
inline |
1.9.1