#[repr(C)]pub struct Matx<T, A: SizedArray<T>> {
pub val: A::Storage,
}
Expand description
Fields
val: A::Storage
Implementations
Trait Implementations
sourceimpl<T, A: SizedArray<T>> Debug for Matx<T, A>
impl<T, A: SizedArray<T>> Debug for Matx<T, A>
sourceimpl<T: Default, A: SizedArray<T>> Default for Matx<T, A>
impl<T: Default, A: SizedArray<T>> Default for Matx<T, A>
sourceimpl<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>
sourceimpl<T: PartialEq, A: SizedArray<T>> PartialEq<Matx<T, A>> for Matx<T, A>
impl<T: PartialEq, A: SizedArray<T>> PartialEq<Matx<T, A>> for Matx<T, A>
sourceimpl<T, A: SizedArray<T>> ToInputArray for &Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToInputArray for &Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
fn input_array(&self) -> Result<_InputArray>
sourceimpl<T, A: SizedArray<T>> ToInputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToInputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
fn input_array(&self) -> Result<_InputArray>
sourceimpl<T, A: SizedArray<T>> ToInputOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToInputOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
fn input_output_array(&mut self) -> Result<_InputOutputArray>
sourceimpl<T, A: SizedArray<T>> ToInputOutputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToInputOutputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
fn input_output_array(&mut self) -> Result<_InputOutputArray>
sourceimpl<T, A: SizedArray<T>> ToOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToOutputArray for &mut Matx<T, A>where
Matx<T, A>: MatxExtern<T, A>,
fn output_array(&mut self) -> Result<_OutputArray>
sourceimpl<T, A: SizedArray<T>> ToOutputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
impl<T, A: SizedArray<T>> ToOutputArray for Matx<T, A>where
Self: MatxExtern<T, A>,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more