MaybeOwnedMatrix

Trait MaybeOwnedMatrix 

Source
pub trait MaybeOwnedMatrix {
    type Elem;

    // Required method
    fn into_owned(self) -> Array2<Self::Elem>;
}
Expand description

Turn arrays, references to arrays, and ArrayRefs into owned arrays

Required Associated Types§

Required Methods§

Source

fn into_owned(self) -> Array2<Self::Elem>

Convert into an owned array, cloning only when necessary.

Implementations on Foreign Types§

Source§

impl<A> MaybeOwnedMatrix for &ArrayRef2<A>
where A: Clone,

Source§

type Elem = A

Source§

fn into_owned(self) -> Array2<A>

Source§

impl<S> MaybeOwnedMatrix for &ArrayBase<S, Ix2>
where S: Data, S::Elem: Clone,

Source§

type Elem = <S as RawData>::Elem

Source§

fn into_owned(self) -> Array2<S::Elem>

Source§

impl<S> MaybeOwnedMatrix for ArrayBase<S, Ix2>
where S: Data, S::Elem: Clone,

Source§

type Elem = <S as RawData>::Elem

Source§

fn into_owned(self) -> Array2<S::Elem>

Implementors§