Trait rblas::vector::Vector
[−]
[src]
pub trait Vector<T> { fn len(&self) -> i32; unsafe fn as_ptr(&self) -> *const T; unsafe fn as_mut_ptr(&mut self) -> *mut T; fn inc(&self) -> i32 { ... } }
Methods that allow a type to be used in BLAS functions as a vector.
Required Methods
fn len(&self) -> i32
The number of elements in the vector.
unsafe fn as_ptr(&self) -> *const T
An unsafe pointer to a contiguous block of memory.
unsafe fn as_mut_ptr(&mut self) -> *mut T
An unsafe mutable pointer to a contiguous block of memory.
Provided Methods
fn inc(&self) -> i32
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]
impl<'a, T> Add for &'a Vector<T> where T: Axpy + Copy + Default
[src]
type Output = Vec<T>
The resulting type after applying the +
operator
fn add(self, x: &Vector<T>) -> Vec<T>
The method for the +
operator
impl<'a, T> Mul<T> for &'a Vector<T> where T: Sized + Copy + Scal
[src]
type Output = Vec<T>
The resulting type after applying the *
operator
fn mul(self, alpha: T) -> Vec<T>
The method for the *
operator
impl<'a, T> Mul<Trans<&'a Vector<T>>> for &'a Vector<T> where T: Default + Ger + Gerc + Clone
[src]
type Output = Mat<T>
The resulting type after applying the *
operator
fn mul(self, x: Trans<&Vector<T>>) -> Mat<T>
The method for the *
operator
impl<'a, T> BitXor<Marker> for &'a Vector<T>
[src]
type Output = Trans<&'a Vector<T>>
The resulting type after applying the ^
operator
fn bitxor(self, m: Marker) -> Trans<&'a Vector<T>>
The method for the ^
operator