pub struct Diagonalization {
input_to_output_mapping: Vec<usize>,
output_shape: Vec<usize>,
}Expand description
Returns the elements of the input tensor where all instances of the repeated indices are equal to one another. Optionally permutes the axes of the tensor as well.
Examples:
ii->iiij->ji
Fields§
§input_to_output_mapping: Vec<usize>§output_shape: Vec<usize>Implementations§
Source§impl Diagonalization
impl Diagonalization
pub fn new(sc: &SizedContraction) -> Self
Trait Implementations§
Source§impl Clone for Diagonalization
impl Clone for Diagonalization
Source§fn clone(&self) -> Diagonalization
fn clone(&self) -> Diagonalization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Diagonalization
impl Debug for Diagonalization
Source§impl<A> SingletonContractor<A> for Diagonalization
impl<A> SingletonContractor<A> for Diagonalization
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 Diagonalization
impl<A> SingletonViewer<A> for Diagonalization
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 Diagonalization
impl RefUnwindSafe for Diagonalization
impl Send for Diagonalization
impl Sync for Diagonalization
impl Unpin for Diagonalization
impl UnwindSafe for Diagonalization
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