[−][src]Trait rust_blas::vector::Vector
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.
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
Trait Implementations
impl<'a, T> Add<&'a (dyn Vector<T> + 'a)> for &'a dyn Vector<T> where
T: Axpy + Copy + Default,
[src]
T: Axpy + Copy + Default,
type Output = Vec<T>
The resulting type after applying the +
operator.
fn add(self, x: &dyn Vector<T>) -> Vec<T>
[src]
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.
fn bitxor(self, m: Marker) -> Trans<&'a dyn Vector<T>>
[src]
impl<'a, T> Into<Vec<T>> for &'a dyn Vector<T> where
T: Copy,
[src]
T: Copy,
impl<'a> Mul<&'a (dyn Vector<Complex<f32>> + 'a)> for Complex32
[src]
type Output = Vec<Complex32>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<Complex32>) -> Vec<Complex32>
[src]
impl<'a> Mul<&'a (dyn Vector<Complex<f64>> + 'a)> for Complex64
[src]
type Output = Vec<Complex64>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<Complex64>) -> Vec<Complex64>
[src]
impl<'a, T> Mul<&'a (dyn Vector<T> + 'a)> for &'a dyn Matrix<T> where
T: Default + Copy + Gemv,
[src]
T: Default + Copy + Gemv,
type Output = Vec<T>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<T>) -> Vec<T>
[src]
impl<'a, T> Mul<&'a (dyn Vector<T> + 'a)> for Trans<&'a dyn Vector<T>> where
T: Sized + Copy + Dot + Dotc,
[src]
T: Sized + Copy + Dot + Dotc,
type Output = T
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<T>) -> T
[src]
impl<'a> Mul<&'a (dyn Vector<f32> + 'a)> for f32
[src]
type Output = Vec<f32>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<f32>) -> Vec<f32>
[src]
impl<'a> Mul<&'a (dyn Vector<f64> + 'a)> for f64
[src]
type Output = Vec<f64>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Vector<f64>) -> Vec<f64>
[src]
impl<'a, T> Mul<T> for &'a dyn Vector<T> where
T: Sized + Copy + Scal,
[src]
T: Sized + Copy + Scal,
type Output = Vec<T>
The resulting type after applying the *
operator.
fn mul(self, alpha: T) -> Vec<T>
[src]
impl<'a, T> Mul<Trans<&'a (dyn Vector<T> + 'a)>> for &'a dyn Vector<T> where
T: Default + Ger + Gerc + Clone,
[src]
T: Default + Ger + Gerc + Clone,