#[repr(C)]pub struct Matx<T, A: SizedArray<T>> {
pub val: A::Storage,
}
Expand description
Fields§
§val: A::Storage
Implementations§
Source§impl<T, A: SizedArray<T>> Matx<T, A>
impl<T, A: SizedArray<T>> Matx<T, A>
pub const fn from_array(s: A::Storage) -> Self
Trait Implementations§
Source§impl<T, A: SizedArray<T>> Debug for Matx<T, A>
impl<T, A: SizedArray<T>> Debug for Matx<T, A>
Source§impl<T, A: SizedArray<T>> MatxTrait for Matx<T, A>
impl<T, A: SizedArray<T>> MatxTrait for Matx<T, A>
type ElemType = T
fn rows(&self) -> usize
fn cols(&self) -> usize
fn val(&self) -> &[Self::ElemType]
fn val_mut(&mut self) -> &mut [Self::ElemType]
fn all(alpha: Self::ElemType) -> Selfwhere
Self: Sized,
fn channels(&self) -> usize
fn shortdim(&self) -> usize
fn zeros() -> Self
fn ones() -> Self
fn get(&self, idx: (usize, usize)) -> Option<&Self::ElemType>
fn get_mut(&mut self, idx: (usize, usize)) -> Option<&mut Self::ElemType>
Source§unsafe fn get_unchecked_mut(
&mut self,
idx: (usize, usize),
) -> &mut Self::ElemType
unsafe fn get_unchecked_mut( &mut self, idx: (usize, usize), ) -> &mut Self::ElemType
Safety Read more
fn eye() -> Self
Source§impl<T, A: SizedArray<T>> ToInputArray for &Matx<T, A>where
Matx<T, A>: MatxExtern,
impl<T, A: SizedArray<T>> ToInputArray for &Matx<T, A>where
Matx<T, A>: MatxExtern,
fn input_array(&self) -> Result<BoxedRef<'_, _InputArray>>
Source§impl<T, A: SizedArray<T>> ToInputArray for Matx<T, A>where
Self: MatxExtern,
impl<T, A: SizedArray<T>> ToInputArray for Matx<T, A>where
Self: MatxExtern,
fn input_array(&self) -> Result<BoxedRef<'_, _InputArray>>
Source§impl<T, A: SizedArray<T>> ToInputOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern,
impl<T, A: SizedArray<T>> ToInputOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern,
fn input_output_array(&mut self) -> Result<BoxedRefMut<'_, _InputOutputArray>>
Source§impl<T, A: SizedArray<T>> ToInputOutputArray for Matx<T, A>where
Self: MatxExtern,
impl<T, A: SizedArray<T>> ToInputOutputArray for Matx<T, A>where
Self: MatxExtern,
fn input_output_array(&mut self) -> Result<BoxedRefMut<'_, _InputOutputArray>>
Source§impl<T, A: SizedArray<T>> ToOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern,
impl<T, A: SizedArray<T>> ToOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern,
fn output_array(&mut self) -> Result<BoxedRefMut<'_, _OutputArray>>
Source§impl<T, A: SizedArray<T>> ToOutputArray for Matx<T, A>where
Self: MatxExtern,
impl<T, A: SizedArray<T>> ToOutputArray for Matx<T, A>where
Self: MatxExtern,
fn output_array(&mut self) -> Result<BoxedRefMut<'_, _OutputArray>>
impl<T: Copy, A: Copy + SizedArray<T>> Copy for Matx<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for Matx<T, A>
impl<T, A> RefUnwindSafe for Matx<T, A>
impl<T, A> Send for Matx<T, A>
impl<T, A> Sync for Matx<T, A>
impl<T, A> Unpin for Matx<T, A>
impl<T, A> UnwindSafe for Matx<T, A>
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