|
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 577 of file univariate.hpp.
| using bb::UnivariateView< Fr, domain_end >::CoefficientAccumulator = UnivariateCoefficientBasis<Fr, MONOMIAL_LENGTH, true> |
Definition at line 582 of file univariate.hpp.
|
default |
|
inlineexplicit |
Definition at line 599 of file univariate.hpp.
|
inlineexplicit |
Definition at line 606 of file univariate.hpp.
|
inline |
Definition at line 683 of file univariate.hpp.
|
inline |
Definition at line 655 of file univariate.hpp.
|
inline |
Definition at line 642 of file univariate.hpp.
|
inline |
Definition at line 669 of file univariate.hpp.
|
inline |
Definition at line 662 of file univariate.hpp.
|
inline |
Definition at line 619 of file univariate.hpp.
|
inline |
Definition at line 633 of file univariate.hpp.
|
inline |
Definition at line 676 of file univariate.hpp.
|
inline |
Definition at line 690 of file univariate.hpp.
|
inline |
Definition at line 626 of file univariate.hpp.
|
inline |
Definition at line 586 of file univariate.hpp.
|
inline |
Definition at line 648 of file univariate.hpp.
|
inline |
Definition at line 596 of file univariate.hpp.
|
friend |
Definition at line 698 of file univariate.hpp.
| std::span<const Fr, LENGTH> bb::UnivariateView< Fr, domain_end >::evaluations |
Definition at line 580 of file univariate.hpp.
|
staticconstexpr |
Definition at line 579 of file univariate.hpp.
|
staticconstexpr |
Definition at line 581 of file univariate.hpp.