pub struct DiagonalizationAndSummation {
diagonalization: Diagonalization,
summation: Summation,
}Expand description
Returns the elements of the input tensor where all instances of the repeated indices are equal to one another, optionally permuting the axes, and sums across indices that don’t appear in the output.
Examples:
iijk->ik(Diagonalizes theiaxes and sums overj)jijik->ki(Diagonalizesiandjand sums overjafter diagonalization)
Fields§
§diagonalization: Diagonalization§summation: SummationImplementations§
Source§impl DiagonalizationAndSummation
impl DiagonalizationAndSummation
pub fn new(sc: &SizedContraction) -> Self
Trait Implementations§
Source§impl Clone for DiagonalizationAndSummation
impl Clone for DiagonalizationAndSummation
Source§fn clone(&self) -> DiagonalizationAndSummation
fn clone(&self) -> DiagonalizationAndSummation
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 DiagonalizationAndSummation
impl Debug for DiagonalizationAndSummation
Source§impl<A> SingletonContractor<A> for DiagonalizationAndSummation
impl<A> SingletonContractor<A> for DiagonalizationAndSummation
fn contract_singleton<'a, 'b>(&self, tensor: &'b ArrayViewD<'a, A>) -> ArrayD<A>where
A: Clone + LinalgScalar,
'a: 'b,
Auto Trait Implementations§
impl Freeze for DiagonalizationAndSummation
impl RefUnwindSafe for DiagonalizationAndSummation
impl Send for DiagonalizationAndSummation
impl Sync for DiagonalizationAndSummation
impl Unpin for DiagonalizationAndSummation
impl UnwindSafe for DiagonalizationAndSummation
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