|
Hypercomplex
Abstract & fast header-only C++ template library for lattice-based cryptosystems in high-dimensional algebras
|
#include <Polynomial.hpp>
Public Member Functions | |
| Polynomial (const int64_t *arr) | |
| This is the main constructor. More... | |
| Polynomial (const Polynomial &P) | |
| This is the copy constructor. More... | |
| Polynomial () | |
| This is the default constructor. More... | |
| Polynomial & | operator= (const Polynomial &P) |
| Assignment operator. More... | |
| Polynomial | operator- () const |
| Create an additive inverse of a given polynomial. More... | |
| int64_t const & | operator[] (const uint64_t i) const |
| Access operator (const) More... | |
| int64_t & | operator[] (const uint64_t i) |
| Access operator (non-const) More... | |
Helper class for polynomials
|
inlineexplicit |
This is the main constructor.
| [in] | arr | array of integers |
Template parameters are:
|
inline |
This is the copy constructor.
| [in] | P | existing class instance |
Template parameters are:
|
inline |
This is the default constructor.
Template parameters are:
|
inline |
Create an additive inverse of a given polynomial.
|
inline |
Assignment operator.
| [in] | P | existing class instance |
|
inline |
Access operator (non-const)
| [in] | i | index for the element to access |
|
inline |
Access operator (const)
| [in] | i | index for the element to access |