pub struct Matrix<R, S, D>{ /* private fields */ }
Implementations§
Source§impl<R, S, D> Matrix<R, S, D>
impl<R, S, D> Matrix<R, S, D>
pub fn offset(&self) -> usize
pub fn shape_stride(&self) -> ShapeStride<S>
pub fn shape(&self) -> S
pub fn stride(&self) -> S
pub fn is_default_stride(&self) -> bool
pub fn is_transpose_default_stride(&self) -> bool
pub fn as_ptr(&self) -> *const R::Item
Sourcepub fn to_vec(&self) -> Vec<R::Item>
pub fn to_vec(&self) -> Vec<R::Item>
this code retunrs a slice of the matrix WARNING: even if the matrix has offset, the slice will be created from the original pointer
pub fn into_dyn_dim(self) -> Matrix<R, DimDyn, D>
pub fn update_shape_stride(&mut self, shape_stride: ShapeStride<S>)
pub fn update_shape(&mut self, shape: S)
pub fn update_stride(&mut self, stride: S)
pub fn into_dim<S2>(self) -> Matrix<R, S2, D>where
S2: DimTrait,
pub fn slice<I>(&self, index: I) -> Matrix<Ref<&R::Item>, S, D>where
I: SliceTrait<Dim = S>,
pub fn slice_dyn(&self, index: Slice) -> Matrix<Ref<&R::Item>, DimDyn, D>
pub fn index_axis<I>(&self, index: I) -> Matrix<Ref<&R::Item>, S, D>
pub fn index_axis_dyn<I>(&self, index: I) -> Matrix<Ref<&R::Item>, DimDyn, D>where
I: IndexAxisTrait,
pub fn index_item<I: Into<S>>(&self, index: I) -> R::Item
pub fn to_ref<'a>(&self) -> Matrix<Ref<&'a R::Item>, S, D>
pub fn convert_dim_type<Dout: DimTrait>(self) -> Matrix<R, Dout, D>
pub fn new_matrix(&self) -> Matrix<Owned<R::Item>, S, D>where
D: Device,
pub fn try_to_scalar(&self) -> Result<R::Item, String>
pub fn to_scalar(&self) -> R::Item
pub fn as_slice(&self) -> &[R::Item]
pub fn as_slice_unchecked(&self) -> &[R::Item]
Source§impl<T, S, D> Matrix<Owned<T>, S, D>
impl<T, S, D> Matrix<Owned<T>, S, D>
pub fn to_ref_mut<'a>(&mut self) -> Matrix<Ref<&'a mut T>, S, D>
pub fn to<Dout: DeviceBase>(self) -> Matrix<Owned<T>, S, Dout>
Source§impl<'a, T, S, D> Matrix<Ref<&'a mut T>, S, D>
impl<'a, T, S, D> Matrix<Ref<&'a mut T>, S, D>
pub fn as_mut_ptr(&self) -> *mut T
pub fn as_mut_slice(&self) -> &mut [T]
pub fn as_mut_slice_unchecked(&self) -> &mut [T]
pub fn each_by<F>(&mut self, f: F)
pub fn slice_mut<I>(&self, index: I) -> Matrix<Ref<&'a mut T>, S, D>where
I: SliceTrait<Dim = S>,
pub fn slice_mut_dyn(&self, index: Slice) -> Matrix<Ref<&'a mut T>, DimDyn, D>
pub fn index_axis_mut<I>(&self, index: I) -> Matrix<Ref<&'a mut T>, S, D>
pub fn index_axis_mut_dyn<I>(
&self,
index: I,
) -> Matrix<Ref<&'a mut T>, DimDyn, D>where
I: IndexAxisTrait,
pub fn index_item_assign<I: Into<S>>(&self, index: I, value: T)
Source§impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
pub fn add_scalar<OR: Repr<Item = T>>( &mut self, other: &Matrix<OR, DimDyn, D>, scalar: T, )
pub fn add_scalar_assign(&mut self, scalar: T)
pub fn add_assign(&mut self, other: &Matrix<Ref<&T>, DimDyn, D>)
pub fn add_array<LR: Repr<Item = T>, RR: Repr<Item = T>>( &mut self, lhs: &Matrix<LR, DimDyn, D>, rhs: &Matrix<RR, DimDyn, D>, )
Source§impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
pub fn sub_scalar<OR: Repr<Item = T>>( &mut self, other: &Matrix<OR, DimDyn, D>, scalar: T, )
pub fn sub_scalar_assign(&mut self, scalar: T)
pub fn sub_assign(&mut self, other: &Matrix<Ref<&T>, DimDyn, D>)
pub fn sub_array<LR: Repr<Item = T>, RR: Repr<Item = T>>( &mut self, lhs: &Matrix<LR, DimDyn, D>, rhs: &Matrix<RR, DimDyn, D>, )
Source§impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
pub fn mul_scalar<OR: Repr<Item = T>>( &mut self, other: &Matrix<OR, DimDyn, D>, scalar: T, )
pub fn mul_scalar_assign(&mut self, scalar: T)
pub fn mul_assign(&mut self, other: &Matrix<Ref<&T>, DimDyn, D>)
pub fn mul_array<LR: Repr<Item = T>, RR: Repr<Item = T>>( &mut self, lhs: &Matrix<LR, DimDyn, D>, rhs: &Matrix<RR, DimDyn, D>, )
Source§impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
impl<T, D> Matrix<Ref<&mut T>, DimDyn, D>
pub fn div_scalar<OR: Repr<Item = T>>( &mut self, other: &Matrix<OR, DimDyn, D>, scalar: T, )
pub fn div_scalar_assign(&mut self, scalar: T)
pub fn div_assign(&mut self, other: &Matrix<Ref<&T>, DimDyn, D>)
pub fn div_array<LR: Repr<Item = T>, RR: Repr<Item = T>>( &mut self, lhs: &Matrix<LR, DimDyn, D>, rhs: &Matrix<RR, DimDyn, D>, )
Source§impl<T: Num, S: DimTrait, D: DeviceBase + AsinOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + AsinOps> Matrix<Ref<&mut T>, S, D>
pub fn asin_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn asin_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + AcosOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + AcosOps> Matrix<Ref<&mut T>, S, D>
pub fn acos_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn acos_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + AtanOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + AtanOps> Matrix<Ref<&mut T>, S, D>
pub fn atan_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn atan_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + SinhOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + SinhOps> Matrix<Ref<&mut T>, S, D>
pub fn sinh_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn sinh_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + CoshOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + CoshOps> Matrix<Ref<&mut T>, S, D>
pub fn cosh_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn cosh_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + TanhOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + TanhOps> Matrix<Ref<&mut T>, S, D>
pub fn tanh_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn tanh_assign(&mut self)
Source§impl<T: Num, S: DimTrait, D: DeviceBase + SqrtOps> Matrix<Ref<&mut T>, S, D>
impl<T: Num, S: DimTrait, D: DeviceBase + SqrtOps> Matrix<Ref<&mut T>, S, D>
pub fn sqrt_array<R: Repr<Item = T>, SO: DimTrait>( &self, other: &Matrix<R, SO, D>, )
pub fn sqrt_assign(&mut self)
Source§impl<T: Num, D: Device> Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, D: Device> Matrix<Ref<&mut T>, DimDyn, D>
pub fn clip_assign(&self, min: T, max: T)
pub fn clip_backward_assign_mask(&self, min: T, max: T)
Source§impl<R: Repr, S: DimTrait, D: Device> Matrix<R, S, D>
impl<R: Repr, S: DimTrait, D: Device> Matrix<R, S, D>
pub fn to_default_stride(&self) -> Matrix<Owned<R::Item>, S, D>
Source§impl<R: Repr, D: Device> Matrix<R, DimDyn, D>
impl<R: Repr, D: Device> Matrix<R, DimDyn, D>
pub fn transpose(&mut self)
pub fn transpose_by_index(&mut self, index: &[usize])
pub fn transpose_by_index_new_matrix( &self, index: &[usize], ) -> Matrix<Owned<R::Item>, DimDyn, D>
pub fn transpose_swap_index(&mut self, a: usize, b: usize)
pub fn transpose_swap_index_new_matrix( &self, a: usize, b: usize, ) -> Matrix<Owned<R::Item>, DimDyn, D>
Trait Implementations§
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Add<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> AddAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> AddAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn add_assign(&mut self, rhs: Matrix<R, SO, D>)
fn add_assign(&mut self, rhs: Matrix<R, SO, D>)
Performs the
+=
operation. Read moreSource§impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> AddAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> AddAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
Source§fn add_assign(&mut self, rhs: Matrix<RO, SO, D>)
fn add_assign(&mut self, rhs: Matrix<RO, SO, D>)
Performs the
+=
operation. Read moreSource§impl<T: Num, S: DimTrait, D: Device> AddAssign<T> for Matrix<Owned<T>, S, D>
impl<T: Num, S: DimTrait, D: Device> AddAssign<T> for Matrix<Owned<T>, S, D>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<T: Num, D: Device> AddAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, D: Device> AddAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<A, R, S, D> Debug for Matrix<R, S, D>
Format the array using Debug
and apply the formatting parameters used
to each element.
impl<A, R, S, D> Debug for Matrix<R, S, D>
Format the array using Debug
and apply the formatting parameters used
to each element.
The array is shown in multiline style.
Source§impl<'de, T: Num + Deserialize<'de>, D: Device> Deserialize<'de> for Matrix<Owned<T>, DimDyn, D>
impl<'de, T: Num + Deserialize<'de>, D: Device> Deserialize<'de> for Matrix<Owned<T>, DimDyn, D>
Source§fn deserialize<Ds>(deserializer: Ds) -> Result<Self, Ds::Error>where
Ds: Deserializer<'de>,
fn deserialize<Ds>(deserializer: Ds) -> Result<Self, Ds::Error>where
Ds: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A, R, S, D> Display for Matrix<R, S, D>
Format the array using Display
and apply the formatting parameters used
to each element.
impl<A, R, S, D> Display for Matrix<R, S, D>
Format the array using Display
and apply the formatting parameters used
to each element.
The array is shown in multiline style.
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Div<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> DivAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> DivAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn div_assign(&mut self, rhs: Matrix<R, SO, D>)
fn div_assign(&mut self, rhs: Matrix<R, SO, D>)
Performs the
/=
operation. Read moreSource§impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> DivAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> DivAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
Source§fn div_assign(&mut self, rhs: Matrix<RO, SO, D>)
fn div_assign(&mut self, rhs: Matrix<RO, SO, D>)
Performs the
/=
operation. Read moreSource§impl<T: Num, S: DimTrait, D: Device> DivAssign<T> for Matrix<Owned<T>, S, D>
impl<T: Num, S: DimTrait, D: Device> DivAssign<T> for Matrix<Owned<T>, S, D>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T: Num, D: Device> DivAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, D: Device> DivAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Mul<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> MulAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> MulAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn mul_assign(&mut self, rhs: Matrix<R, SO, D>)
fn mul_assign(&mut self, rhs: Matrix<R, SO, D>)
Performs the
*=
operation. Read moreSource§impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> MulAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> MulAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
Source§fn mul_assign(&mut self, rhs: Matrix<RO, SO, D>)
fn mul_assign(&mut self, rhs: Matrix<RO, SO, D>)
Performs the
*=
operation. Read moreSource§impl<T: Num, S: DimTrait, D: Device> MulAssign<T> for Matrix<Owned<T>, S, D>
impl<T: Num, S: DimTrait, D: Device> MulAssign<T> for Matrix<Owned<T>, S, D>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl<T: Num, D: Device> MulAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, D: Device> MulAssign<T> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<&Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<&Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<Matrix<RO, SO, D>> for &Matrix<RS, SS, D>
Source§impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
impl<T: Num, RS: Repr<Item = T>, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> Sub<Matrix<RO, SO, D>> for Matrix<RS, SS, D>
Source§impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> SubAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
impl<T: Num, R: Repr<Item = T>, SO: DimTrait, D: Device> SubAssign<Matrix<R, SO, D>> for Matrix<Ref<&mut T>, DimDyn, D>
Source§fn sub_assign(&mut self, rhs: Matrix<R, SO, D>)
fn sub_assign(&mut self, rhs: Matrix<R, SO, D>)
Performs the
-=
operation. Read moreSource§impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> SubAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
impl<T: Num, SS: DimTrait, RO: Repr<Item = T>, SO: DimTrait, D: Device> SubAssign<Matrix<RO, SO, D>> for Matrix<Owned<T>, SS, D>
Source§fn sub_assign(&mut self, rhs: Matrix<RO, SO, D>)
fn sub_assign(&mut self, rhs: Matrix<RO, SO, D>)
Performs the
-=
operation. Read moreAuto Trait Implementations§
impl<R, S, D> Freeze for Matrix<R, S, D>where
S: Freeze,
impl<R, S, D> RefUnwindSafe for Matrix<R, S, D>
impl<R, S, D> !Send for Matrix<R, S, D>
impl<R, S, D> !Sync for Matrix<R, S, D>
impl<R, S, D> Unpin for Matrix<R, S, D>
impl<R, S, D> UnwindSafe for Matrix<R, S, D>
Blanket Implementations§
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