pub struct AlgebrustVector { /* private fields */ }
Implementations§
Source§impl AlgebrustVector
impl AlgebrustVector
pub fn new(vector: &[f64]) -> Self
pub fn new_rand(length: usize, low: f64, high: f64) -> Self
pub fn new_zeros(length: usize) -> Self
pub fn len(&self) -> usize
pub fn vector_ref(&self) -> &Vec<f64>
pub fn addition(&self, other: &AlgebrustVector) -> AlgebrustVector
pub fn subtraction(&self, other: &AlgebrustVector) -> AlgebrustVector
pub fn dot_product(&self, other: &AlgebrustVector) -> f64
pub fn scalar_multiplication(&self, scaler: f64) -> AlgebrustVector
pub fn magnitude(&self) -> f64
pub fn normalization(&self) -> AlgebrustVector
pub fn cross_product(&self, other: &AlgebrustVector) -> AlgebrustVector
Auto Trait Implementations§
impl Freeze for AlgebrustVector
impl RefUnwindSafe for AlgebrustVector
impl Send for AlgebrustVector
impl Sync for AlgebrustVector
impl Unpin for AlgebrustVector
impl UnwindSafe for AlgebrustVector
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