TensorBase

Trait TensorBase 

Source
pub trait TensorBase<S, D, A> {
    type Cont<_S: RawData<Elem = _A>, _D: Dimension, _A>;

    // Required methods
    fn rank(&self) -> usize;
    fn shape(&self) -> &[usize];
    fn size(&self) -> usize;
}

Required Associated Types§

Source

type Cont<_S: RawData<Elem = _A>, _D: Dimension, _A>

Required Methods§

Source

fn rank(&self) -> usize

Source

fn shape(&self) -> &[usize]

Source

fn size(&self) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A, S, D> TensorBase<S, D, A> for ArrayBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,

Source§

type Cont<_S: RawData<Elem = _A>, _D: Dimension, _A> = ArrayBase<_S, _D, _A>

Source§

fn rank(&self) -> usize

Source§

fn shape(&self) -> &[usize]

Source§

fn size(&self) -> usize

Implementors§