pub trait Matrix<T> {
// Required methods
fn rows(&self) -> u32;
fn cols(&self) -> u32;
fn as_ptr(&self) -> *const T;
fn as_mut_ptr(&mut self) -> *mut T;
// Provided methods
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.
Returns the number of rows.
Returns the number of columns.
An unsafe pointer to a contiguous block of memory.
An unsafe pointer to a contiguous block of memory.
The leading dimension of the matrix. Defaults to cols
for RowMajor
order and ‘rows’ for ColMajor
order.
The order of the matrix. Defaults to RowMajor
.
The resulting type after applying the +
operator.
The resulting type after applying the ^
operator.
Converts to this type from the input type.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.