Trait Representation

Source
pub trait Representation<F: PseudoField> {
    // Required methods
    fn size(&self) -> usize;
    fn get(&self, row: usize, column: usize) -> F;

    // Provided methods
    fn diagonal(&self, row: usize) -> F { ... }
    fn dimension(&self) -> usize { ... }
}

Required Methods§

Source

fn size(&self) -> usize

The size $N$ of the APH representation.

Source

fn get(&self, row: usize, column: usize) -> F

Returns the value at the given row and column.

§Panics

Panics if the access is out-of-bounds.

Provided Methods§

Source

fn diagonal(&self, row: usize) -> F

Returns the value at the diagonal of the given row.

Source

fn dimension(&self) -> usize

The dimension of the generator matrix.

Implementors§