TensorViewAPI

Trait TensorViewAPI 

Source
pub trait TensorViewAPI {
    type Type;
    type Backend: DeviceAPI<Self::Type>;
    type Dim: DimAPI;

    // Required method
    fn view(
        &self,
    ) -> TensorBase<Storage<DataRef<'_, <Self::Backend as DeviceRawAPI<Self::Type>>::Raw>, Self::Type, Self::Backend>, Self::Dim>;
}

Required Associated Types§

Required Methods§

Source

fn view( &self, ) -> TensorBase<Storage<DataRef<'_, <Self::Backend as DeviceRawAPI<Self::Type>>::Raw>, Self::Type, Self::Backend>, Self::Dim>

Get a view of tensor.

Implementors§

Source§

impl<R, T, B, D> TensorViewAPI for &TensorBase<Storage<R, T, B>, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<R, T, B, D> TensorViewAPI for &mut TensorBase<Storage<R, T, B>, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<R, T, B, D> TensorViewAPI for TensorBase<Storage<R, T, B>, D>
where D: DimAPI, R: DataAPI<Data = <B as DeviceRawAPI<T>>::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<T, B, D> TensorViewAPI for TensorMutable<'_, T, B, D>
where D: DimAPI, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D