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
fn len(&self) -> c_int
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) -> c_int
The stride within the vector. For example, if inc returns 7, every
7th element is used. Defaults to 1.