Trait ndarray_linalg::layout::AllocatedArray
source · [−]pub trait AllocatedArray {
type Elem;
fn layout(&self) -> Result<MatrixLayout>;
fn square_layout(&self) -> Result<MatrixLayout>;
fn ensure_square(&self) -> Result<()>;
fn as_allocated(&self) -> Result<&[Self::Elem]>;
}
Required Associated Types
Required Methods
source
fn layout(&self) -> Result<MatrixLayout>
source
fn square_layout(&self) -> Result<MatrixLayout>
sourcefn ensure_square(&self) -> Result<()>
fn ensure_square(&self) -> Result<()>
Returns Ok iff the matrix is square (without computing the layout).
source