#[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 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 get(&self, idx: (usize, usize)) -> Option<&Self::ElemType>
fn get_mut(&mut self, idx: (usize, usize)) -> Option<&mut Self::ElemType>
source§impl<T: PartialEq, A: SizedArray<T>> PartialEq for Matx<T, A>
impl<T: PartialEq, A: SizedArray<T>> PartialEq for Matx<T, A>
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<_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<_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<_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<_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<_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<_OutputArray>
impl<T: Copy, A: Copy + SizedArray<T>> Copy for Matx<T, A>where A::Storage: Copy,
Auto Trait Implementations§
impl<T, A> RefUnwindSafe for Matx<T, A>where <A as SizedArray<T>>::Storage: RefUnwindSafe,
impl<T, A> Send for Matx<T, A>where <A as SizedArray<T>>::Storage: Send,
impl<T, A> Sync for Matx<T, A>where <A as SizedArray<T>>::Storage: Sync,
impl<T, A> Unpin for Matx<T, A>where <A as SizedArray<T>>::Storage: Unpin,
impl<T, A> UnwindSafe for Matx<T, A>where <A as SizedArray<T>>::Storage: UnwindSafe,
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