pub struct Vector<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Vector<'a>
impl<'a> Vector<'a>
pub fn new(length: usize) -> Self
pub fn gaussian(variance: f64, quality: f64) -> Self
pub fn value(value: f64, length: usize) -> Self
pub fn identity() -> Self
pub fn scale(&mut self, scalar: f64)
pub fn normalize(&mut self, height: f64)
pub fn conv(&mut self, other: &Vector<'_>)
pub fn add(&mut self, other: &Vector<'_>)
pub fn sub(&mut self, other: &Vector<'_>)
pub fn shift(&mut self, value: usize)
pub fn coefficients(&self) -> &[f64]
pub fn coefficients_mut(&self) -> &[f64]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Vector<'a>
impl<'a> !Send for Vector<'a>
impl<'a> !Sync for Vector<'a>
impl<'a> Unpin for Vector<'a>
impl<'a> UnwindSafe for Vector<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more