[−][src]Struct zkp_stark::TraceTable
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 Debug for TraceTable
[src]
impl Index<(usize, usize)> for TraceTable
[src]
Returns a field
type Output = FieldElement
The returned type after indexing.
fn index(&self, (i, j): (usize, usize)) -> &Self::Output
[src]
impl Index<usize> for TraceTable
[src]
Returns a row as a slice
type Output = [FieldElement]
The returned type after indexing.
fn index(&self, i: usize) -> &[FieldElement]
[src]
impl IndexMut<(usize, usize)> for TraceTable
[src]
Returns a mutable field
impl IndexMut<usize> for TraceTable
[src]
Returns a mutable row as a slice
Auto Trait Implementations
impl Send for TraceTable
impl Sync for TraceTable
impl Unpin for TraceTable
impl RefUnwindSafe for TraceTable
impl UnwindSafe for TraceTable
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,