ArrayLike

Trait ArrayLike 

Source
pub trait ArrayLike<A> {
    // Required method
    fn into_dyn_view(&self) -> ArrayView<'_, A, IxDyn>;
}
Expand description

This trait is implemented for all ArrayBase variants and is parameterized by the data type.

It’s here so einsum and the other functions accepting a list of operands can take a slice &[&dyn ArrayLike<A>] where the elements of the slice can have different numbers of dimensions and can be a mixture of Array and ArrayView.

Required Methods§

Source

fn into_dyn_view(&self) -> ArrayView<'_, A, IxDyn>

Implementations on Foreign Types§

Source§

impl<A, S, D> ArrayLike<A> for ArrayBase<S, D>
where S: Data<Elem = A>, D: Dimension,

Implementors§