[][src]Trait ndarray_linalg::layout::AllocatedArray

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]>; }

Associated Types

type Elem

Required methods

fn layout(&self) -> Result<MatrixLayout>

fn square_layout(&self) -> Result<MatrixLayout>

fn ensure_square(&self) -> Result<()>[]

Returns Ok iff the matrix is square (without computing the layout).

fn as_allocated(&self) -> Result<&[Self::Elem]>

Implementations on Foreign Types

impl<A, S> AllocatedArray for ArrayBase<S, Ix2> where
    S: Data<Elem = A>, 
[src][]

type Elem = A

Implementors