pub struct ProjectionVector { /* private fields */ }
Expand description
Calculate projection vector
Implementations§
Source§impl ProjectionVector
impl ProjectionVector
Sourcepub fn new(matrix: &ProjectionMatrix, s_i: &RqVector) -> Self
pub fn new(matrix: &ProjectionMatrix, s_i: &RqVector) -> Self
Calculates Projection
Sourcepub fn get_projection(&self) -> &Vec<Zq>
pub fn get_projection(&self) -> &Vec<Zq>
Obtain projection
Sourcepub fn norm_squared(&self) -> Zq
pub fn norm_squared(&self) -> Zq
Euclidean norm
Trait Implementations§
Source§impl Clone for ProjectionVector
impl Clone for ProjectionVector
Source§fn clone(&self) -> ProjectionVector
fn clone(&self) -> ProjectionVector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProjectionVector
impl RefUnwindSafe for ProjectionVector
impl Send for ProjectionVector
impl Sync for ProjectionVector
impl Unpin for ProjectionVector
impl UnwindSafe for ProjectionVector
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