Skip to main content

BlendOps

Trait BlendOps 

Source
pub trait BlendOps<Scalar: Clone + EachBlend, const MAX_RANK: usize>: TensorRef<Scalar, MAX_RANK>
where Scalar::Scalar: From<f32> + Copy,
{ // Provided method fn try_sub_tensor( &self, other: &(impl TensorRef<Scalar, MAX_RANK> + ?Sized), ) -> Result<Tensor<Scalar, Global, MAX_RANK>, TensorError> { ... } }
Expand description

Extension trait: element-wise subtraction for any TensorRef implementor.

Provided Methods§

Source

fn try_sub_tensor( &self, other: &(impl TensorRef<Scalar, MAX_RANK> + ?Sized), ) -> Result<Tensor<Scalar, Global, MAX_RANK>, TensorError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Scalar: Clone + EachBlend, const R: usize, C: TensorRef<Scalar, R>> BlendOps<Scalar, R> for C
where Scalar::Scalar: From<f32> + Copy,