pub struct Vector<F: Field, K: ArraySize>(pub Array<Polynomial<F>, K>);Expand description
A Vector is a vector of polynomials from R_q of length K.
Vectors can be added, subtracted, negated, and multiplied by field elements.
Tuple Fields§
§0: Array<Polynomial<F>, K>Implementations§
Trait Implementations§
Source§impl<F, D, K> Encode<D> for Vector<F, K>
impl<F, D, K> Encode<D> for Vector<F, K>
Source§type EncodedSize = <D as VectorEncodingSize<K>>::EncodedVectorSize
type EncodedSize = <D as VectorEncodingSize<K>>::EncodedVectorSize
Size of the encoded object.
Source§impl<F: Field, K: ArraySize> Zeroize for Vector<F, K>
Available on crate feature zeroize only.
impl<F: Field, K: ArraySize> Zeroize for Vector<F, K>
Available on crate feature
zeroize only.impl<F: Field, K: ArraySize> StructuralPartialEq for Vector<F, K>
Auto Trait Implementations§
impl<F, K> Freeze for Vector<F, K>
impl<F, K> RefUnwindSafe for Vector<F, K>
impl<F, K> Send for Vector<F, K>
impl<F, K> Sync for Vector<F, K>
impl<F, K> Unpin for Vector<F, K>
impl<F, K> UnwindSafe for Vector<F, K>
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