TensorSumBoolAPI

Trait TensorSumBoolAPI 

Source
pub trait TensorSumBoolAPI<B, D>{
    // Required methods
    fn sum_all_f(&self) -> Result<usize>;
    fn sum_axes_f<I>(&self, axes: I) -> Result<Tensor<usize, B, IxD>>
       where I: TryInto<AxesIndex<isize>, Error = Error>;

    // Provided methods
    fn sum_all(&self) -> usize { ... }
    fn sum_f(&self) -> Result<usize> { ... }
    fn sum(&self) -> usize { ... }
    fn sum_axes<I>(&self, axes: I) -> Tensor<usize, B, IxD>
       where I: TryInto<AxesIndex<isize>, Error = Error> { ... }
}

Required Methods§

Source

fn sum_all_f(&self) -> Result<usize>

Source

fn sum_axes_f<I>(&self, axes: I) -> Result<Tensor<usize, B, IxD>>
where I: TryInto<AxesIndex<isize>, Error = Error>,

Provided Methods§

Source

fn sum_all(&self) -> usize

Source

fn sum_f(&self) -> Result<usize>

Source

fn sum(&self) -> usize

Source

fn sum_axes<I>(&self, axes: I) -> Tensor<usize, B, IxD>
where I: TryInto<AxesIndex<isize>, Error = Error>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, B, D> TensorSumBoolAPI<B, D> for TensorAny<R, bool, B, D>