[][src]Struct zkp_stark::TraceTable

pub struct TraceTable { /* fields omitted */ }

Methods

impl TraceTable[src]

pub fn new(trace_length: usize, num_columns: usize) -> Self[src]

Constructs a zero-initialized trace table of the given size.

pub fn num_rows(&self) -> usize[src]

pub fn num_columns(&self) -> usize[src]

pub fn generator(&self) -> FieldElement[src]

pub fn iter_row(&self, i: usize) -> impl Iterator<Item = &FieldElement>[src]

pub fn iter_column(&self, j: usize) -> impl Iterator<Item = &FieldElement>[src]

pub fn column_to_mmapvec(&self, j: usize) -> MmapVec<FieldElement>[src]

Extract the j-th column as a vector

It allocates a potentially large new vector. Where possible, use the index accessors or the column iterator instead. It is unfortunately not possible to get a slice of a column (since the representation is row first.)

pub fn interpolate(&self) -> Vec<DensePolynomial>[src]

Trait Implementations

impl Index<(usize, usize)> for TraceTable[src]

Returns a field

type Output = FieldElement

The returned type after indexing.

impl Index<usize> for TraceTable[src]

Returns a row as a slice

type Output = [FieldElement]

The returned type after indexing.

impl IndexMut<(usize, usize)> for TraceTable[src]

Returns a mutable field

impl IndexMut<usize> for TraceTable[src]

Returns a mutable row as a slice

impl Debug for TraceTable[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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