Trait rust_blas::matrix::Matrix [−][src]
pub trait Matrix<T> {
fn rows(&self) -> u32;
fn cols(&self) -> u32;
fn as_ptr(&self) -> *const T;
fn as_mut_ptr(&mut self) -> *mut T;
fn lead_dim(&self) -> u32 { ... }
fn order(&self) -> Order { ... }
}
Expand description
Methods that allow a type to be used in BLAS functions as a matrix.
Required methods
fn as_mut_ptr(&mut self) -> *mut T
fn as_mut_ptr(&mut self) -> *mut T
An unsafe pointer to a contiguous block of memory.
Provided methods
The leading dimension of the matrix. Defaults to cols
for RowMajor
order and ‘rows’ for ColMajor
order.