|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
A view of a univariate, also used to truncate univariates. More...
#include <univariate.hpp>
Public Types | |
| using | CoefficientAccumulator = UnivariateCoefficientBasis< Fr, MONOMIAL_LENGTH, true > |
Public Member Functions | |
| UnivariateView ()=default | |
| bool | operator== (const UnivariateView &other) const |
| const Fr & | value_at (size_t i) const |
| template<size_t full_domain_end> | |
| UnivariateView (const Univariate< Fr, full_domain_end > &univariate_in) | |
| operator UnivariateCoefficientBasis< Fr, 2, true > () const | |
| Univariate< Fr, domain_end > | operator+ (const UnivariateView &other) const |
| Univariate< Fr, domain_end > | operator- (const UnivariateView &other) const |
| Univariate< Fr, domain_end > | operator- () const |
| Univariate< Fr, domain_end > | operator* (const UnivariateView &other) const |
| Univariate< Fr, domain_end > | sqr () const |
| Univariate< Fr, domain_end > | operator* (const Univariate< Fr, domain_end > &other) const |
| Univariate< Fr, domain_end > | operator+ (const Univariate< Fr, domain_end > &other) const |
| Univariate< Fr, domain_end > | operator+ (const Fr &other) const |
| Univariate< Fr, domain_end > | operator- (const Fr &other) const |
| Univariate< Fr, domain_end > | operator* (const Fr &other) const |
| Univariate< Fr, domain_end > | operator- (const Univariate< Fr, domain_end > &other) const |
Public Attributes | |
| std::span< const Fr, LENGTH > | evaluations |
Static Public Attributes | |
| static constexpr size_t | LENGTH = domain_end |
| static constexpr size_t | MONOMIAL_LENGTH = LENGTH > 1 ? 2 : 1 |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const UnivariateView &u) |
A view of a univariate, also used to truncate univariates.
For optimization purposes, it makes sense to define univariates with large lengths and then reuse only some of the data in those univariates. We do that by taking a view of those elements and then, as needed, using this to populate new containers.
Definition at line 571 of file univariate.hpp.
| using bb::UnivariateView< Fr, domain_end >::CoefficientAccumulator = UnivariateCoefficientBasis<Fr, MONOMIAL_LENGTH, true> |
Definition at line 576 of file univariate.hpp.
|
default |
|
inlineexplicit |
Definition at line 593 of file univariate.hpp.
|
inlineexplicit |
Definition at line 596 of file univariate.hpp.
|
inline |
Definition at line 673 of file univariate.hpp.
|
inline |
Definition at line 645 of file univariate.hpp.
|
inline |
Definition at line 632 of file univariate.hpp.
|
inline |
Definition at line 659 of file univariate.hpp.
|
inline |
Definition at line 652 of file univariate.hpp.
|
inline |
Definition at line 609 of file univariate.hpp.
|
inline |
Definition at line 623 of file univariate.hpp.
|
inline |
Definition at line 666 of file univariate.hpp.
|
inline |
Definition at line 680 of file univariate.hpp.
|
inline |
Definition at line 616 of file univariate.hpp.
|
inline |
Definition at line 580 of file univariate.hpp.
|
inline |
Definition at line 638 of file univariate.hpp.
|
inline |
Definition at line 590 of file univariate.hpp.
|
friend |
Definition at line 688 of file univariate.hpp.
| std::span<const Fr, LENGTH> bb::UnivariateView< Fr, domain_end >::evaluations |
Definition at line 574 of file univariate.hpp.
|
staticconstexpr |
Definition at line 573 of file univariate.hpp.
|
staticconstexpr |
Definition at line 575 of file univariate.hpp.