|
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, size_t full_domain_start = 0> | |
| UnivariateView (const Univariate< Fr, full_domain_end, full_domain_start, skip_count > &univariate_in) | |
| operator UnivariateCoefficientBasis< Fr, 2, true > () const | |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator+ (const UnivariateView &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator- (const UnivariateView &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator- () const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator* (const UnivariateView &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | sqr () const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator* (const Univariate< Fr, domain_end, domain_start, skip_count > &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator+ (const Univariate< Fr, domain_end, domain_start, skip_count > &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator+ (const Fr &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator- (const Fr &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator* (const Fr &other) const |
| Univariate< Fr, domain_end, domain_start, skip_count > | operator- (const Univariate< Fr, domain_end, domain_start, skip_count > &other) const |
Public Attributes | |
| std::span< const Fr, LENGTH > | evaluations |
Static Public Attributes | |
| static constexpr size_t | LENGTH = domain_end - domain_start |
| 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 651 of file univariate.hpp.
| using bb::UnivariateView< Fr, domain_end, domain_start, skip_count >::CoefficientAccumulator = UnivariateCoefficientBasis<Fr, MONOMIAL_LENGTH, true> |
Definition at line 656 of file univariate.hpp.
|
default |
|
inlineexplicit |
Definition at line 674 of file univariate.hpp.
|
inlineexplicit |
Definition at line 677 of file univariate.hpp.
|
inline |
Definition at line 761 of file univariate.hpp.
|
inline |
Definition at line 731 of file univariate.hpp.
|
inline |
Definition at line 718 of file univariate.hpp.
|
inline |
Definition at line 747 of file univariate.hpp.
|
inline |
Definition at line 739 of file univariate.hpp.
|
inline |
Definition at line 691 of file univariate.hpp.
|
inline |
Definition at line 705 of file univariate.hpp.
|
inline |
Definition at line 754 of file univariate.hpp.
|
inline |
Definition at line 768 of file univariate.hpp.
|
inline |
Definition at line 698 of file univariate.hpp.
|
inline |
Definition at line 660 of file univariate.hpp.
|
inline |
Definition at line 724 of file univariate.hpp.
|
inline |
Definition at line 671 of file univariate.hpp.
|
friend |
Definition at line 777 of file univariate.hpp.
| std::span<const Fr, LENGTH> bb::UnivariateView< Fr, domain_end, domain_start, skip_count >::evaluations |
Definition at line 654 of file univariate.hpp.
|
staticconstexpr |
Definition at line 653 of file univariate.hpp.
|
staticconstexpr |
Definition at line 655 of file univariate.hpp.