pub struct VectorN<const N: usize> { /* private fields */ }
Expand description
An N
x 1 vector struct.
Implementations
sourceimpl<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
sourceimpl<const N: usize> AddAssign<VectorN<N>> for VectorN<N>
impl<const N: usize> AddAssign<VectorN<N>> for VectorN<N>
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
Auto Trait Implementations
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
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