pub trait AllocatedArray {
type Elem;
// Required methods
fn layout(&self) -> Result<MatrixLayout, LinalgError>;
fn square_layout(&self) -> Result<MatrixLayout, LinalgError>;
fn ensure_square(&self) -> Result<(), LinalgError>;
fn as_allocated(&self) -> Result<&[Self::Elem], LinalgError>;
}Required Associated Types§
Required Methods§
fn layout(&self) -> Result<MatrixLayout, LinalgError>
fn square_layout(&self) -> Result<MatrixLayout, LinalgError>
Sourcefn ensure_square(&self) -> Result<(), LinalgError>
fn ensure_square(&self) -> Result<(), LinalgError>
Returns Ok iff the matrix is square (without computing the layout).