pub struct RqMatrix { /* private fields */ }
Expand description
Matrix of polynomials in Rq
Implementations§
Source§impl RqMatrix
impl RqMatrix
Sourcepub const fn new(elements: Vec<RqVector>) -> Self
pub const fn new(elements: Vec<RqVector>) -> Self
Constructor for the Matrix of polynomials in Rq
pub fn zero(row_len: usize, col_len: usize) -> Self
pub fn get_row_len(&self) -> usize
pub fn get_col_len(&self) -> usize
Sourcepub fn random<R: Rng + CryptoRng>(
rng: &mut R,
row_len: usize,
col_len: usize,
) -> Self
pub fn random<R: Rng + CryptoRng>( rng: &mut R, row_len: usize, col_len: usize, ) -> Self
Create a random matrix of polynomials
pub fn get_cell_symmetric(&self, row: usize, col: usize) -> Rq
Sourcepub fn random_ternary<R: Rng + CryptoRng>(
rng: &mut R,
row_len: usize,
col_len: usize,
) -> Self
pub fn random_ternary<R: Rng + CryptoRng>( rng: &mut R, row_len: usize, col_len: usize, ) -> Self
Create a random matrix of polynomials with ternary coefficients
pub fn get_elements(&self) -> &Vec<RqVector>
pub fn decompose_each_cell(&self, base: Zq, num_parts: usize) -> RqVector
Trait Implementations§
Source§impl FromIterator<RqVector> for RqMatrix
impl FromIterator<RqVector> for RqMatrix
Auto Trait Implementations§
impl Freeze for RqMatrix
impl RefUnwindSafe for RqMatrix
impl Send for RqMatrix
impl Sync for RqMatrix
impl Unpin for RqMatrix
impl UnwindSafe for RqMatrix
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