pub struct TruncatedPolynomialMonomialBasis {
p: ValidPrime,
pub gens: OnceVec<(usize, usize)>,
pub gen_degrees: OnceVec<i32>,
parts_by_max: OnceVec<Vec<Vec<FpVector>>>,
pub parts: OnceVec<Vec<FpVector>>,
}Fields§
§p: ValidPrime§gens: OnceVec<(usize, usize)>degree => (first_index, number_of_gens)
gen_degrees: OnceVec<i32>index ==> degree
parts_by_max: OnceVec<Vec<Vec<FpVector>>>degree => max_part => list of partitions with maximum part max_part
parts: OnceVec<Vec<FpVector>>Implementations§
Source§impl TruncatedPolynomialMonomialBasis
impl TruncatedPolynomialMonomialBasis
pub fn new(p: ValidPrime) -> Self
pub fn generators(&self, degree: i32) -> usize
pub fn generators_up_to_degree(&self, degree: i32) -> usize
pub fn gen_deg_idx_to_internal_idx(&self, degree: i32, idx: usize) -> usize
pub fn internal_idx_to_gen_deg(&self, idx: usize) -> (i32, usize)
pub fn parts(&self, degree: i32) -> &Vec<FpVector>
pub fn add_gens_and_calculate_parts(&self, degree: i32, new_gens: usize)
Auto Trait Implementations§
impl !Freeze for TruncatedPolynomialMonomialBasis
impl RefUnwindSafe for TruncatedPolynomialMonomialBasis
impl Send for TruncatedPolynomialMonomialBasis
impl Sync for TruncatedPolynomialMonomialBasis
impl Unpin for TruncatedPolynomialMonomialBasis
impl !UnwindSafe for TruncatedPolynomialMonomialBasis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more