ferrite

Trait TensorOps

Source
pub trait TensorOps {
Show 20 methods // Required methods fn add_tensor(&self, other: &Self) -> Self; fn add_tensor_assign(&mut self, other: &Self); fn sub_tensor(&self, other: &Self) -> Self; fn sub_tensor_assign(&mut self, other: &Self); fn mul_tensor(&self, other: &Self) -> Self; fn mul_tensor_assign(&mut self, other: &Self); fn div_tensor(&self, other: &Self) -> Self; fn div_tensor_assign(&mut self, other: &Self); fn add_f32(&self, other: f32) -> Self; fn add_f32_assign(&mut self, other: f32); fn sub_f32(&self, other: f32) -> Self; fn sub_f32_assign(&mut self, other: f32); fn mul_f32(&self, other: f32) -> Self; fn mul_f32_assign(&mut self, other: f32); fn div_f32(&self, other: f32) -> Self; fn div_f32_assign(&mut self, other: f32); fn matmul(&self, other: &Self) -> Self; fn sum(&self) -> Self; fn product(&self) -> Self; fn mean(&self) -> Self;
}

Required Methods§

Source

fn add_tensor(&self, other: &Self) -> Self

Source

fn add_tensor_assign(&mut self, other: &Self)

Source

fn sub_tensor(&self, other: &Self) -> Self

Source

fn sub_tensor_assign(&mut self, other: &Self)

Source

fn mul_tensor(&self, other: &Self) -> Self

Source

fn mul_tensor_assign(&mut self, other: &Self)

Source

fn div_tensor(&self, other: &Self) -> Self

Source

fn div_tensor_assign(&mut self, other: &Self)

Source

fn add_f32(&self, other: f32) -> Self

Source

fn add_f32_assign(&mut self, other: f32)

Source

fn sub_f32(&self, other: f32) -> Self

Source

fn sub_f32_assign(&mut self, other: f32)

Source

fn mul_f32(&self, other: f32) -> Self

Source

fn mul_f32_assign(&mut self, other: f32)

Source

fn div_f32(&self, other: f32) -> Self

Source

fn div_f32_assign(&mut self, other: f32)

Source

fn matmul(&self, other: &Self) -> Self

Source

fn sum(&self) -> Self

Source

fn product(&self) -> Self

Source

fn mean(&self) -> Self

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§