pub trait TensorSumBoolAPI<B, D>{
// Required methods
fn sum_all_f(&self) -> Result<usize, Error>;
fn sum_axes_f(
&self,
axes: impl TryInto<AxesIndex<isize>, Error = Error>,
) -> Result<TensorBase<Storage<DataOwned<<B as DeviceRawAPI<usize>>::Raw>, usize, B>, Vec<usize>>, Error>;
// Provided methods
fn sum_all(&self) -> usize { ... }
fn sum_f(&self) -> Result<usize, Error> { ... }
fn sum(&self) -> usize { ... }
fn sum_axes(
&self,
axes: impl TryInto<AxesIndex<isize>, Error = Error>,
) -> TensorBase<Storage<DataOwned<<B as DeviceRawAPI<usize>>::Raw>, usize, B>, Vec<usize>> { ... }
}Required Methods§
fn sum_all_f(&self) -> Result<usize, Error>
fn sum_axes_f( &self, axes: impl TryInto<AxesIndex<isize>, Error = Error>, ) -> Result<TensorBase<Storage<DataOwned<<B as DeviceRawAPI<usize>>::Raw>, usize, B>, Vec<usize>>, Error>
Provided Methods§
fn sum_all(&self) -> usize
fn sum_f(&self) -> Result<usize, Error>
fn sum(&self) -> usize
fn sum_axes( &self, axes: impl TryInto<AxesIndex<isize>, Error = Error>, ) -> TensorBase<Storage<DataOwned<<B as DeviceRawAPI<usize>>::Raw>, usize, B>, Vec<usize>>
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.