Struct Vector

Source
pub struct Vector { /* private fields */ }

Implementations§

Source§

impl Vector

Source

pub fn from(array: Vec<f64>) -> Vector

Source

pub fn empty() -> Vector

Source

pub fn iter(&self) -> Iter<'_, f64>

Source

pub fn iter_mut(&mut self) -> IterMut<'_, f64>

Source

pub fn len(&self) -> usize

Source

pub fn into_vec(&self) -> Vec<f64>

Source

pub fn to_vec(&self) -> &Vec<f64>

Trait Implementations§

Source§

impl<'a, 'b> Add<&'a Vector> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a Vector> for Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, 'b> Add<&'a f64> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a f64> for Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Vector> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<f64> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Vector

Source§

type Output = Vector

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> AddAssign<&'a Vector> for Vector

Source§

fn add_assign(&mut self, rhs: &Vector)

Performs the += operation. Read more
Source§

impl<'a> AddAssign<&'a f64> for Vector

Source§

fn add_assign(&mut self, rhs: &f64)

Performs the += operation. Read more
Source§

impl AddAssign<f64> for Vector

Source§

fn add_assign(&mut self, rhs: f64)

Performs the += operation. Read more
Source§

impl AddAssign for Vector

Source§

fn add_assign(&mut self, rhs: Vector)

Performs the += operation. Read more
Source§

impl Clone for Vector

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, 'b> Div<&'a Vector> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vector) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> Div<&'a Vector> for Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vector) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, 'b> Div<&'a f64> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> Div<&'a f64> for Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> Div<Vector> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vector) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> Div<f64> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Vector

Source§

type Output = Vector

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vector) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a> DivAssign<&'a Vector> for Vector

Source§

fn div_assign(&mut self, rhs: &Vector)

Performs the /= operation. Read more
Source§

impl<'a> DivAssign<&'a f64> for Vector

Source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
Source§

impl DivAssign<f64> for Vector

Source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
Source§

impl DivAssign for Vector

Source§

fn div_assign(&mut self, rhs: Vector)

Performs the /= operation. Read more
Source§

impl Dot<Matrix> for Vector

Source§

type Output = Vector

Source§

fn dot(&self, rhs: &Matrix) -> Self::Output

Source§

impl Dot<Vector> for Matrix

Source§

type Output = Vector

Source§

fn dot(&self, rhs: &Vector) -> Self::Output

Source§

impl Dot for Vector

Source§

type Output = f64

Source§

fn dot(&self, rhs: &Vector) -> Self::Output

Source§

impl Index<usize> for Vector

Source§

type Output = f64

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl IndexMut<usize> for Vector

Source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl Init for Vector

Source§

type Output = Vector

Source§

type Size = usize

Source§

fn init(value: f64, size: Self::Size) -> Self::Output

Source§

fn init_func<F>(func: F, size: Self::Size) -> Self::Output
where F: Fn(Self::Size) -> f64,

Source§

fn zeros(size: Self::Size) -> Self::Output

Source§

fn ones(size: Self::Size) -> Self::Output

Source§

impl<'a, 'b> Mul<&'a Vector> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a Vector> for Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, 'b> Mul<&'a f64> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a f64> for Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Vector> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<f64> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Vector

Source§

type Output = Vector

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> MulAssign<&'a Vector> for Vector

Source§

fn mul_assign(&mut self, rhs: &Vector)

Performs the *= operation. Read more
Source§

impl<'a> MulAssign<&'a f64> for Vector

Source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
Source§

impl MulAssign<f64> for Vector

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl MulAssign for Vector

Source§

fn mul_assign(&mut self, rhs: Vector)

Performs the *= operation. Read more
Source§

impl Neg for &Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<'a, 'b> Sub<&'a Vector> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a Vector> for Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, 'b> Sub<&'a f64> for &'b Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a f64> for Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Vector> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<f64> for &'a Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Vector

Source§

type Output = Vector

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> SubAssign<&'a Vector> for Vector

Source§

fn sub_assign(&mut self, rhs: &Vector)

Performs the -= operation. Read more
Source§

impl<'a> SubAssign<&'a f64> for Vector

Source§

fn sub_assign(&mut self, rhs: &f64)

Performs the -= operation. Read more
Source§

impl SubAssign<f64> for Vector

Source§

fn sub_assign(&mut self, rhs: f64)

Performs the -= operation. Read more
Source§

impl SubAssign for Vector

Source§

fn sub_assign(&mut self, rhs: Vector)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl Freeze for Vector

§

impl RefUnwindSafe for Vector

§

impl Send for Vector

§

impl Sync for Vector

§

impl Unpin for Vector

§

impl UnwindSafe for Vector

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.