pub struct MultilinearExtensionIndex<'a, P>where
P: PackedField,{ /* private fields */ }
Expand description
Data structure that indexes multilinear extensions by oracle ID.
A crate::oracle::MultilinearOracleSet
indexes multilinear polynomial oracles by assigning
unique, sequential oracle IDs.
Implementations§
Source§impl<'a, P> MultilinearExtensionIndex<'a, P>where
P: PackedField,
impl<'a, P> MultilinearExtensionIndex<'a, P>where
P: PackedField,
pub fn new() -> Self
pub fn get_index_entry(&self, id: OracleId) -> Result<IndexEntry<'a, P>, Error>
pub fn get_multilin_poly( &self, id: OracleId, ) -> Result<MultilinearWitness<'a, P>, Error>
pub fn update_multilin_poly( &mut self, witnesses: impl IntoIterator<Item = (OracleId, MultilinearWitness<'a, P>)>, ) -> Result<(), Error>
pub fn update_multilin_poly_with_nonzero_scalars_prefixes( &mut self, witnesses: impl IntoIterator<Item = (OracleId, MultilinearWitness<'a, P>, usize)>, ) -> Result<(), Error>
Trait Implementations§
Source§impl<'a, P> Debug for MultilinearExtensionIndex<'a, P>where
P: PackedField + Debug,
impl<'a, P> Debug for MultilinearExtensionIndex<'a, P>where
P: PackedField + Debug,
Source§impl<'a, P> Default for MultilinearExtensionIndex<'a, P>where
P: PackedField + Default,
impl<'a, P> Default for MultilinearExtensionIndex<'a, P>where
P: PackedField + Default,
Source§fn default() -> MultilinearExtensionIndex<'a, P>
fn default() -> MultilinearExtensionIndex<'a, P>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a, P> Freeze for MultilinearExtensionIndex<'a, P>
impl<'a, P> !RefUnwindSafe for MultilinearExtensionIndex<'a, P>
impl<'a, P> Send for MultilinearExtensionIndex<'a, P>
impl<'a, P> Sync for MultilinearExtensionIndex<'a, P>
impl<'a, P> Unpin for MultilinearExtensionIndex<'a, P>
impl<'a, P> !UnwindSafe for MultilinearExtensionIndex<'a, P>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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