Skip to main content

TensorMut

Trait TensorMut 

Source
pub trait TensorMut<T: StorageElement, const MAX_RANK: usize>: TensorRef<T, MAX_RANK> {
    // Required method
    fn as_mut_ptr(&mut self) -> *mut T;
}
Expand description

Mutable structural access to N-dimensional tensor containers.

Required Methods§

Source

fn as_mut_ptr(&mut self) -> *mut T

Implementors§

Source§

impl<'a, T: StorageElement, const R: usize> TensorMut<T, R> for TensorSpan<'a, T, R>

Source§

impl<T: StorageElement, A: Allocator, const R: usize> TensorMut<T, R> for Tensor<T, A, R>