pub struct Identity {}Expand description
Returns a view or clone of the input tensor.
Example: ij->ij
Implementations§
Trait Implementations§
Source§impl<A> SingletonContractor<A> for Identity
impl<A> SingletonContractor<A> for Identity
fn contract_singleton<'a, 'b>(&self, tensor: &'b ArrayViewD<'a, A>) -> ArrayD<A>where
A: Clone + LinalgScalar,
'a: 'b,
Source§impl<A> SingletonViewer<A> for Identity
impl<A> SingletonViewer<A> for Identity
fn view_singleton<'a, 'b>(
&self,
tensor: &'b ArrayViewD<'a, A>,
) -> ArrayViewD<'b, A>where
A: Clone + LinalgScalar,
'a: 'b,
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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