[][src]Trait rust_blas::vector::Vector

pub trait Vector<T> {
    fn len(&self) -> u32;
fn as_ptr(&self) -> *const T;
fn as_mut_ptr(&mut self) -> *mut T; fn inc(&self) -> u32 { ... }
fn is_empty(&self) -> bool { ... } }

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

Required methods

fn len(&self) -> u32

The number of elements in the vector.

fn as_ptr(&self) -> *const T

An unsafe pointer to a contiguous block of memory.

fn as_mut_ptr(&mut self) -> *mut T

An unsafe mutable pointer to a contiguous block of memory.

Loading content...

Provided methods

fn inc(&self) -> u32

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

fn is_empty(&self) -> bool

Check if Vector is empty

Loading content...

Trait Implementations

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

type Output = Vec<T>

The resulting type after applying the + operator.

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

type Output = Trans<&'a dyn Vector<T>>

The resulting type after applying the ^ operator.

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

impl<'a> Mul<&'a (dyn Vector<Complex<f32>> + 'a)> for Complex32[src]

type Output = Vec<Complex32>

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Vector<Complex<f64>> + 'a)> for Complex64[src]

type Output = Vec<Complex64>

The resulting type after applying the * operator.

impl<'a, T> Mul<&'a (dyn Vector<T> + 'a)> for &'a dyn Matrix<T> where
    T: Default + Copy + Gemv
[src]

type Output = Vec<T>

The resulting type after applying the * operator.

impl<'a, T> Mul<&'a (dyn Vector<T> + 'a)> for Trans<&'a dyn Vector<T>> where
    T: Sized + Copy + Dot + Dotc
[src]

type Output = T

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Vector<f32> + 'a)> for f32[src]

type Output = Vec<f32>

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Vector<f64> + 'a)> for f64[src]

type Output = Vec<f64>

The resulting type after applying the * operator.

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

type Output = Vec<T>

The resulting type after applying the * operator.

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

type Output = Mat<T>

The resulting type after applying the * operator.

Implementations on Foreign Types

impl<T> Vector<T> for Vec<T>[src]

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

Loading content...

Implementors

Loading content...