pub struct HadamardProductGeneral {
lhs_permutation: Permutation,
rhs_permutation: Permutation,
hadamard_product: HadamardProduct,
}Expand description
Permutes the axes of the LHS and RHS tensors to the order in which those axes appear in the output before computing the Hadamard (element-wise) product.
Examples of contractions that fit this category:
ij,ij->ij(Can also can useHadamardProduct)ij,ji->ij(Can only useHadamardProductGeneral)
Fields§
§lhs_permutation: Permutation§rhs_permutation: Permutation§hadamard_product: HadamardProductImplementations§
Source§impl HadamardProductGeneral
impl HadamardProductGeneral
pub fn new(sc: &SizedContraction) -> Self
Trait Implementations§
Source§impl Clone for HadamardProductGeneral
impl Clone for HadamardProductGeneral
Source§fn clone(&self) -> HadamardProductGeneral
fn clone(&self) -> HadamardProductGeneral
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 HadamardProductGeneral
impl Debug for HadamardProductGeneral
Source§impl<A> PairContractor<A> for HadamardProductGeneral
impl<A> PairContractor<A> for HadamardProductGeneral
fn contract_pair<'a, 'b, 'c, 'd>(
&self,
lhs: &'b ArrayViewD<'a, A>,
rhs: &'d ArrayViewD<'c, A>,
) -> ArrayD<A>where
A: Clone + LinalgScalar,
'a: 'b,
'c: 'd,
fn contract_and_assign_pair<'a, 'b, 'c, 'd, 'e, 'f>(
&self,
lhs: &'b ArrayViewD<'a, A>,
rhs: &'d ArrayViewD<'c, A>,
out: &'f mut ArrayViewMutD<'e, A>,
)where
A: Clone + LinalgScalar,
'a: 'b,
'c: 'd,
'e: 'f,
Auto Trait Implementations§
impl Freeze for HadamardProductGeneral
impl RefUnwindSafe for HadamardProductGeneral
impl Send for HadamardProductGeneral
impl Sync for HadamardProductGeneral
impl Unpin for HadamardProductGeneral
impl UnwindSafe for HadamardProductGeneral
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