pub struct HadamardProduct {}Expand description
Computes the Hadamard (element-wise) product of two tensors.
All instances of SizedContraction making use of this contractor must have the form
ij,ij->ij.
Contractions of the form ij,ji->ij need to use HadamardProductGeneral instead.
Implementations§
Source§impl HadamardProduct
impl HadamardProduct
pub fn new(sc: &SizedContraction) -> Self
fn from_nothing() -> Self
Trait Implementations§
Source§impl Clone for HadamardProduct
impl Clone for HadamardProduct
Source§fn clone(&self) -> HadamardProduct
fn clone(&self) -> HadamardProduct
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 HadamardProduct
impl Debug for HadamardProduct
Source§impl<A> PairContractor<A> for HadamardProduct
impl<A> PairContractor<A> for HadamardProduct
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 HadamardProduct
impl RefUnwindSafe for HadamardProduct
impl Send for HadamardProduct
impl Sync for HadamardProduct
impl Unpin for HadamardProduct
impl UnwindSafe for HadamardProduct
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