TensorViewMutAPI

Trait TensorViewMutAPI 

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

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

Required Associated Types§

Required Methods§

Source

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

Get a mutable view of tensor.

Implementors§

Source§

impl<R, T, B, D> TensorViewMutAPI for &mut TensorBase<Storage<R, T, B>, D>
where D: DimAPI, R: DataMutAPI<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> TensorViewMutAPI for TensorBase<Storage<R, T, B>, D>
where D: DimAPI, R: DataMutAPI<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> TensorViewMutAPI for TensorMutable<'_, T, B, D>
where D: DimAPI, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D