pub struct VectorN<const N: usize> { /* private fields */ }
Expand description
An N
x 1 vector struct.
Implementations§
Source§impl<const N: usize> VectorN<N>
impl<const N: usize> VectorN<N>
Sourcepub fn dotproduct(&self, other: &VectorN<N>) -> Result<f64, VectorError>
pub fn dotproduct(&self, other: &VectorN<N>) -> Result<f64, VectorError>
Returns the dot product of this vector
Trait Implementations§
Source§impl<const N: usize> AddAssign for VectorN<N>
impl<const N: usize> AddAssign for VectorN<N>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl<const N: usize> Freeze for VectorN<N>
impl<const N: usize> RefUnwindSafe for VectorN<N>
impl<const N: usize> Send for VectorN<N>
impl<const N: usize> Sync for VectorN<N>
impl<const N: usize> Unpin for VectorN<N>
impl<const N: usize> UnwindSafe for VectorN<N>
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