Skip to main content

FmaOps

Trait FmaOps 

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

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

Provided Methods§

Source

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

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<T: Clone + EachFMA, const R: usize, C: TensorRef<T, R>> FmaOps<T, R> for C
where T::Scalar: From<f32> + Copy,