Struct triton_vm::table::master_table::MasterBaseTable

source ·
pub struct MasterBaseTable {
    pub num_trace_randomizers: usize,
    /* private fields */
}
Expand description

Fields§

§num_trace_randomizers: usize

Implementations§

source§

impl MasterBaseTable

source

pub fn new( aet: &AlgebraicExecutionTrace, num_trace_randomizers: usize, quotient_domain: ArithmeticDomain, fri_domain: ArithmeticDomain ) -> Self

source

pub fn pad(&mut self)

Pad the trace to the next power of two using the various, table-specific padding rules. All tables must have the same height for reasons of verifier efficiency. Furthermore, that height must be a power of two for reasons of prover efficiency. Concretely, the Number Theory Transform (NTT) performed by the prover is particularly efficient over the used base field when the number of rows is a power of two.

source

pub fn extend(&self, challenges: &Challenges) -> MasterExtTable

Create a MasterExtTable from a MasterBaseTable by .extend()ing each individual base table. The .extend() for each table is specific to that table, but always involves adding some number of columns.

source

pub fn table(&self, table_id: TableId) -> ArrayView2<'_, BFieldElement>

A view of the specified table, without any randomizers.

source

pub fn table_mut( &mut self, table_id: TableId ) -> ArrayViewMut2<'_, BFieldElement>

A mutable view of the specified table, without any randomizers.

Trait Implementations§

source§

impl Clone for MasterBaseTable

source§

fn clone(&self) -> MasterBaseTable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MasterBaseTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl MasterTable<BFieldElement> for MasterBaseTable

source§

fn trace_domain(&self) -> ArithmeticDomain

source§

fn randomized_trace_domain(&self) -> ArithmeticDomain

source§

fn quotient_domain(&self) -> ArithmeticDomain

source§

fn fri_domain(&self) -> ArithmeticDomain

source§

fn trace_table(&self) -> ArrayView2<'_, BFieldElement>

Presents underlying trace data, excluding trace randomizers and randomizer polynomials.
source§

fn trace_table_mut(&mut self) -> ArrayViewMut2<'_, BFieldElement>

Mutably presents underlying trace data, excluding trace randomizers and randomizer polynomials.
source§

fn randomized_trace_table(&self) -> ArrayView2<'_, BFieldElement>

source§

fn randomized_trace_table_mut(&mut self) -> ArrayViewMut2<'_, BFieldElement>

source§

fn quotient_domain_table(&self) -> ArrayView2<'_, BFieldElement>

The low-degree extended randomized trace data over the quotient domain. Includes randomizer polynomials. Requires having called low_degree_extend_all_columns first.
source§

fn fri_domain_table(&self) -> ArrayView2<'_, BFieldElement>

The low-degree extended randomized trace data over the FRI domain. Includes randomizer polynomials. Requires having called low_degree_extend_all_columns first.
source§

fn memoize_low_degree_extended_table( &mut self, low_degree_extended_columns: Array2<BFieldElement> )

Not intended for direct use, but through Self::low_degree_extend_all_columns.
source§

fn low_degree_extended_table(&self) -> ArrayView2<'_, BFieldElement>

Requires having called low_degree_extend_all_columns first.
source§

fn memoize_interpolation_polynomials( &mut self, interpolation_polynomials: Array1<Polynomial<BFieldElement>> )

Memoize the polynomials interpolating the columns. Not intended for direct use, but through Self::low_degree_extend_all_columns.
source§

fn interpolation_polynomials(&self) -> ArrayView1<'_, Polynomial<XFieldElement>>

Requires having called low_degree_extend_all_columns first.
source§

fn row(&self, row_index: XFieldElement) -> Array1<XFieldElement>

Get one row of the table at an arbitrary index. Notably, the index does not have to be in any of the domains. In other words, can be used to compute out-of-domain rows. Requires having called low_degree_extend_all_columns first. Does not include randomizer polynomials.
source§

fn hash_one_row(row: ArrayView1<'_, BFieldElement>) -> Digest

source§

fn randomize_trace(&mut self)

Set all rows not part of the actual (padded) trace to random values.
source§

fn low_degree_extend_all_columns(&mut self)

Low-degree extend all columns of the randomized trace domain table. The resulting low-degree extended columns can be accessed using quotient_domain_table and fri_domain_table.
source§

fn merkle_tree( &self, maybe_profiler: &mut Option<TritonProfiler> ) -> MerkleTree<Tip5>

Compute a Merkle tree of the FRI domain table. Every row gives one leaf in the tree. The function hash_row is used to hash each row.
source§

fn hash_all_fri_domain_rows(&self) -> Vec<Digest>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V