Trait rblas::vector::Vector [] [src]

pub trait Vector<T> {
    fn len(&self) -> c_int;
    fn as_ptr(&self) -> *const T;
    fn as_mut_ptr(&mut self) -> *mut T;

    fn inc(&self) -> c_int { ... }
}

Methods that allow a type to be used in BLAS functions as a vector.

Required Methods

The number of elements in the vector.

An unsafe pointer to a contiguous block of memory.

An unsafe mutable pointer to a contiguous block of memory.

Provided Methods

The stride within the vector. For example, if inc returns 7, every 7th element is used. Defaults to 1.

Trait Implementations

impl<'a, T> Into<Vec<T>> for &'a Vector<T> where
    T: Copy
[src]

Performs the conversion.

impl<'a, T> Add for &'a Vector<T> where
    T: Axpy + Copy + Default
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, T> Mul<T> for &'a Vector<T> where
    T: Sized + Copy + Scal
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<Trans<&'a Vector<T>>> for &'a Vector<T> where
    T: Default + Ger + Gerc + Clone
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> BitXor<Marker> for &'a Vector<T>
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

Implementors