pub struct VectorReshapeBlock<I, O> {
pub data: BlockData,
/* private fields */
}Expand description
Reshapes an input signal to a specified output shape.
If the input type is an (M, N) matrix, the output type MUST have dimensions such that M_inN_in == M_outN_out. Accepts a scalar input, T, if the output is a Matrix<1, 1, T>.
Fields§
§data: BlockDataTrait Implementations§
Source§impl<I, O> Default for VectorReshapeBlock<I, O>
impl<I, O> Default for VectorReshapeBlock<I, O>
Source§impl<const IROWS: usize, const ICOLS: usize, const OROWS: usize, const OCOLS: usize, T> ProcessBlock for VectorReshapeBlock<Matrix<IROWS, ICOLS, T>, Matrix<OROWS, OCOLS, T>>where
T: Scalar,
impl<const IROWS: usize, const ICOLS: usize, const OROWS: usize, const OCOLS: usize, T> ProcessBlock for VectorReshapeBlock<Matrix<IROWS, ICOLS, T>, Matrix<OROWS, OCOLS, T>>where
T: Scalar,
Source§impl<T> ProcessBlock for VectorReshapeBlock<T, Matrix<1, 1, T>>where
T: Scalar,
impl<T> ProcessBlock for VectorReshapeBlock<T, Matrix<1, 1, T>>where
T: Scalar,
Auto Trait Implementations§
impl<I, O> Freeze for VectorReshapeBlock<I, O>where
O: Freeze,
impl<I, O> RefUnwindSafe for VectorReshapeBlock<I, O>where
O: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, O> Send for VectorReshapeBlock<I, O>
impl<I, O> Sync for VectorReshapeBlock<I, O>
impl<I, O> Unpin for VectorReshapeBlock<I, O>
impl<I, O> UnsafeUnpin for VectorReshapeBlock<I, O>where
O: UnsafeUnpin,
impl<I, O> UnwindSafe for VectorReshapeBlock<I, O>where
O: UnwindSafe,
I: 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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.