Struct vectors::dense::heap::DenseVector [] [src]

pub struct DenseVector<T> { /* fields omitted */ }

A dense heap-allocated multi-dimensional vector.

Methods

impl<T> DenseVector<T>
[src]

[src]

The number of components in self

[src]

true if self.len() == 0, otherwise false

Important traits for Iter<'a, T>
[src]

A borrowing iterator over self

Trait Implementations

impl<T, V> Add<V> for DenseVector<T> where
    T: AddAssign<T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T, V> AddAssign<V> for DenseVector<T> where
    T: AddAssign<T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

[src]

Performs the += operation.

impl<T, V> Sub<V> for DenseVector<T> where
    T: SubAssign<T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T, V> SubAssign<V> for DenseVector<T> where
    T: SubAssign<T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

[src]

Performs the -= operation.

impl<T> Mul<T> for DenseVector<T> where
    T: Copy + MulAssign<T>, 
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T> MulAssign<T> for DenseVector<T> where
    T: Copy + MulAssign<T>, 
[src]

[src]

Performs the *= operation.

impl<T> Div<T> for DenseVector<T> where
    T: Copy + DivAssign<T>, 
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T> DivAssign<T> for DenseVector<T> where
    T: Copy + DivAssign<T>, 
[src]

[src]

Performs the /= operation.

impl<T, V> MulAdd<T, V> for DenseVector<T> where
    T: Copy + MulAddAssign<T, T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

The resulting type after applying the fused multiply-add.

[src]

Performs the fused multiply-add operation.

impl<T, V> MulAddAssign<T, V> for DenseVector<T> where
    T: Copy + MulAddAssign<T, T>,
    V: IntoIterator<Item = (usize, T)>,
    <V as IntoIterator>::IntoIter: ExactSizeIterator
[src]

[src]

Performs the fused multiply-add operation.

impl<'a, T> Dot for DenseVector<T> where
    T: Copy + Num
[src]

The scalar type returned by self's dot product

[src]

Calculates the dot-product between self and rhs.

impl<T> Distance for DenseVector<T> where
    T: Copy + Signed
[src]

The scalar type returned by self's distance

[src]

Calculates the squared euclidian distance between self and rhs.

[src]

Calculates the euclidian distance between self and rhs.

impl<T> Debug for DenseVector<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> FromIterator<T> for DenseVector<T>
[src]

[src]

Creates a value from an iterator. Read more

impl<T> IntoIterator for DenseVector<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a DenseVector<T> where
    T: 'a + Copy
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T: Clone> Clone for DenseVector<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for DenseVector<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T> From<Vec<T>> for DenseVector<T>
[src]

[src]

Performs the conversion.

impl<V, T> VectorOps<V, T> for DenseVector<T> where
    Self: Add<V, Output = Self> + Sub<V, Output = Self> + Mul<T, Output = Self> + Div<T, Output = Self> + MulAdd<T, V, Output = Self>,
    T: Copy + NumAssign + MulAdd<T, T, Output = T>, 
[src]

impl<V, T> VectorAssignOps<V, T> for DenseVector<T> where
    Self: AddAssign<V> + SubAssign<V> + MulAssign<T> + DivAssign<T> + MulAddAssign<T, V>,
    T: Copy + NumAssign + MulAddAssign
[src]

impl<T> Vector<T> for DenseVector<T> where
    Self: VectorOps<Self, T>,
    T: Copy + NumAssign + MulAdd<T, T, Output = T>, 
[src]

The type of the Vector's scalar components.

Auto Trait Implementations

impl<T> Send for DenseVector<T> where
    T: Send

impl<T> Sync for DenseVector<T> where
    T: Sync