TensorViewMutAPI

Trait TensorViewMutAPI 

Source
pub trait TensorViewMutAPI
where Self::Dim: DimAPI, Self::Backend: DeviceAPI<Self::Type>,
{ type Type; type Backend; type Dim; // Required method fn view_mut( &mut self, ) -> TensorMut<'_, Self::Type, Self::Backend, Self::Dim>; }

Required Associated Types§

Required Methods§

Source

fn view_mut(&mut self) -> TensorMut<'_, Self::Type, Self::Backend, Self::Dim>

Get a mutable view of tensor.

Implementors§

Source§

impl<R, T, B, D> TensorViewMutAPI for &mut TensorAny<R, T, B, D>
where D: DimAPI, R: DataMutAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<R, T, B, D> TensorViewMutAPI for TensorAny<R, T, B, D>
where D: DimAPI, R: DataMutAPI<Data = B::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