pub struct NDSliceMut<'a, T: 'a> { /* private fields */ }
Expand description
Structure representing an mutable borrow of a n-dimensional array sub slice.
Trait Implementations§
Source§impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Add<&'a R> for &'b NDSliceMut<'c, T>
impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Add<&'a R> for &'b NDSliceMut<'c, T>
Source§impl<'a, 'b, T: Clone + Display + From<f32>, R: NDData<T> + Sized> AddAssign<&'a R> for NDSliceMut<'b, T>where
NDSliceMut<'b, T>: Blas<T>,
impl<'a, 'b, T: Clone + Display + From<f32>, R: NDData<T> + Sized> AddAssign<&'a R> for NDSliceMut<'b, T>where
NDSliceMut<'b, T>: Blas<T>,
Source§fn add_assign(&mut self, rhs: &'a R)
fn add_assign(&mut self, rhs: &'a R)
Performs the
+=
operation. Read moreSource§impl<'a, 'b, T> Index<&'b [usize]> for NDSliceMut<'a, T>
impl<'a, 'b, T> Index<&'b [usize]> for NDSliceMut<'a, T>
Source§impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Mul<&'a R> for &'b NDSliceMut<'c, T>
impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Mul<&'a R> for &'b NDSliceMut<'c, T>
Source§impl<'a, 'b, T: Clone + Display + From<f32>, I: NDData<T> + Sized> MulAssign<&'b I> for NDSliceMut<'a, T>
impl<'a, 'b, T: Clone + Display + From<f32>, I: NDData<T> + Sized> MulAssign<&'b I> for NDSliceMut<'a, T>
Source§fn mul_assign(&mut self, rhs: &'b I)
fn mul_assign(&mut self, rhs: &'b I)
Performs the
*=
operation. Read moreSource§impl<'a, T> NDData<T> for NDSliceMut<'a, T>
impl<'a, T> NDData<T> for NDSliceMut<'a, T>
Source§fn shape(&self) -> &[usize]
fn shape(&self) -> &[usize]
Return a slice of length N where each element is the length of the dimension.
For a 2 dimensional matrix, the first dimension is the number of rows and the second
dimension is the number of columns.
Source§impl<'a, T: Clone + Display> NDDataMut<T> for NDSliceMut<'a, T>
impl<'a, T: Clone + Display> NDDataMut<T> for NDSliceMut<'a, T>
Source§impl<'a, T: 'a> NDSliceable<'a, T> for NDSliceMut<'a, T>
impl<'a, T: 'a> NDSliceable<'a, T> for NDSliceMut<'a, T>
Source§fn slice(&'a self, idx: &[usize]) -> NDSlice<'a, T>
fn slice(&'a self, idx: &[usize]) -> NDSlice<'a, T>
Take a slice of length < N representing the sub slice index and return immutable borrow of
the sub slice as an NDSlice.
Because the storage is in row-major order and the slice need to be contiguous in the
underlying storage array it means, for example, only the rows of a matrix can be borrowed.
Source§impl<'a, T: 'a> NDSliceableMut<'a, T> for NDSliceMut<'a, T>
impl<'a, T: 'a> NDSliceableMut<'a, T> for NDSliceMut<'a, T>
Source§fn slice_mut(&'a mut self, idx: &[usize]) -> NDSliceMut<'a, T>
fn slice_mut(&'a mut self, idx: &[usize]) -> NDSliceMut<'a, T>
Take a slice of length < N representing the sub slice index and return immutable borrow of
the sub slice as an NDSlice.
Because the storage is in row-major order and the slice need to be contiguous in the
underlying storage array it means, for example, only the rows of a matrix can be borrowed.
Source§impl<'a, T> SizedBuffer for NDSliceMut<'a, T>
impl<'a, T> SizedBuffer for NDSliceMut<'a, T>
unsafe fn get_raw_ptr(&self) -> *const c_void
fn get_raw_size(&self) -> usize
Source§impl<'a, T: Clone + Display> SizedBufferMut for NDSliceMut<'a, T>where
NDSliceMut<'a, T>: SizedBuffer,
impl<'a, T: Clone + Display> SizedBufferMut for NDSliceMut<'a, T>where
NDSliceMut<'a, T>: SizedBuffer,
unsafe fn get_raw_ptr_mut(&mut self) -> *mut c_void
Source§impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Sub<&'a R> for &'b NDSliceMut<'c, T>
impl<'a, 'b, 'c, T: Clone + Display + From<f32>, R: NDData<T> + Sized> Sub<&'a R> for &'b NDSliceMut<'c, T>
Source§impl<'a, 'b, T: Clone + Display + From<f32>, R: NDData<T> + Sized> SubAssign<&'a R> for NDSliceMut<'b, T>where
NDSliceMut<'b, T>: Blas<T>,
impl<'a, 'b, T: Clone + Display + From<f32>, R: NDData<T> + Sized> SubAssign<&'a R> for NDSliceMut<'b, T>where
NDSliceMut<'b, T>: Blas<T>,
Source§fn sub_assign(&mut self, rhs: &'a R)
fn sub_assign(&mut self, rhs: &'a R)
Performs the
-=
operation. Read moreimpl<'a, T: Eq> Eq for NDSliceMut<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for NDSliceMut<'a, T>
impl<'a, T> RefUnwindSafe for NDSliceMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for NDSliceMut<'a, T>where
T: Send,
impl<'a, T> Sync for NDSliceMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for NDSliceMut<'a, T>
impl<'a, T> !UnwindSafe for NDSliceMut<'a, T>
Blanket Implementations§
Source§impl<R> Blas<c32> for R
impl<R> Blas<c32> for R
Source§fn axpy(&mut self, a: c32, x: &dyn NDData<c32>)
fn axpy(&mut self, a: c32, x: &dyn NDData<c32>)
Compute y += a * x where y is this array, x is a N-dimensional array of the same size as y
and a is a scalar.
Source§impl<R> Blas<c64> for R
impl<R> Blas<c64> for R
Source§fn axpy(&mut self, a: c64, x: &dyn NDData<c64>)
fn axpy(&mut self, a: c64, x: &dyn NDData<c64>)
Compute y += a * x where y is this array, x is a N-dimensional array of the same size as y
and a is a scalar.
Source§impl<R> Blas<f32> for R
impl<R> Blas<f32> for R
Source§fn axpy(&mut self, a: f32, x: &dyn NDData<f32>)
fn axpy(&mut self, a: f32, x: &dyn NDData<f32>)
Compute y += a * x where y is this array, x is a N-dimensional array of the same size as y
and a is a scalar.
Source§impl<R> Blas<f64> for R
impl<R> Blas<f64> for R
Source§fn axpy(&mut self, a: f64, x: &dyn NDData<f64>)
fn axpy(&mut self, a: f64, x: &dyn NDData<f64>)
Compute y += a * x where y is this array, x is a N-dimensional array of the same size as y
and a is a scalar.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more