Struct matmath::vector_class::Vector[][src]

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

A Vector with generic type items. Can be indexed by vector[i]

Methods

impl<T> Vector<T>
[src]

Multiplies the vector with a scalar

Applies a function to every element of the vector

Trait Implementations

impl<T, U, O> Mul<Vector<U>> for Matrix<T> where
    T: Mul<U, Output = O> + Clone,
    U: Clone,
    O: Add<O, Output = O>, 
[src]

Matrix-Vector Multiplication

The resulting type after applying the * operator.

Performs the * operation.

impl<T: Debug> Debug for Vector<T>
[src]

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.

impl<T: Eq> Eq for Vector<T>
[src]

impl<T> Display for Vector<T> where
    T: Display + Clone
[src]

Formats the value using the given formatter. Read more

impl<T> Into<Matrix<T>> for Vector<T>
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> From<Matrix<T>> for Vector<T>
[src]

A Vector can be cast to a matrix and back

Performs the conversion.

impl<T> Index<usize> for Vector<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<usize> for Vector<T>
[src]

Performs the mutable indexing (container[index]) operation.

impl<T, U, O> Add<Vector<U>> for Vector<T> where
    T: Add<U, Output = O>, 
[src]

Adds two vectors element by element

The resulting type after applying the + operator.

Performs the + operation.

impl<T, U, O> Sub<Vector<U>> for Vector<T> where
    T: Sub<U, Output = O>, 
[src]

Subtracts two vectors element by element

The resulting type after applying the - operator.

Performs the - operation.

impl<T, O> Neg for Vector<T> where
    T: Neg<Output = O>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<T, U, O> Rem<U> for Vector<T> where
    T: Rem<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<T, U, O> BitAnd<U> for Vector<T> where
    T: BitAnd<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<T, U, O> BitOr<U> for Vector<T> where
    T: BitOr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<T, U, O> BitXor<U> for Vector<T> where
    T: BitXor<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<T, O> Not for Vector<T> where
    T: Not<Output = O>, 
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<T, U, O> Shl<U> for Vector<T> where
    T: Shl<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<T, U, O> Shr<U> for Vector<T> where
    T: Shr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

Auto Trait Implementations

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

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