Trait ndarray_linalg::layout::AllocatedArray [−][src]
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]
impl<A, S> AllocatedArray for ArrayBase<S, Ix2> where
S: Data<Elem = A>, type Elem = A
fn layout(&self) -> Result<MatrixLayout>[src]
fn layout(&self) -> Result<MatrixLayout>fn square_layout(&self) -> Result<MatrixLayout>[src]
fn square_layout(&self) -> Result<MatrixLayout>fn ensure_square(&self) -> Result<()>[src]
fn ensure_square(&self) -> Result<()>fn as_allocated(&self) -> Result<&[A]>[src]
fn as_allocated(&self) -> Result<&[A]>