pub struct Summation {
adjusted_axis_list: Vec<usize>,
}Expand description
Sums across the elements of the input tensor that don’t appear in the output tensor.
Example: ij->i
Fields§
§adjusted_axis_list: Vec<usize>Implementations§
Source§impl Summation
impl Summation
pub fn new(sc: &SizedContraction) -> Self
fn from_sizes(start_index: usize, num_summed_axes: usize) -> Self
Trait Implementations§
Source§impl<A> SingletonContractor<A> for Summation
impl<A> SingletonContractor<A> for Summation
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 Summation
impl RefUnwindSafe for Summation
impl Send for Summation
impl Sync for Summation
impl Unpin for Summation
impl UnwindSafe for Summation
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