Trait BinaryOps

Source
pub trait BinaryOps {
    // Required methods
    fn mult(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn add(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn subtract(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn dot(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn scale_add(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn scale_mult(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>;
    fn save(&self, filepath: &str) -> Result<()>;
    fn load(filepath: &str) -> Result<NDArray<f64>>;
}

Required Methods§

Source

fn mult(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn add(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn subtract(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn dot(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn scale_add(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn scale_mult(&self, other: NDArray<f64>) -> Result<NDArray<f64>, String>

Source

fn save(&self, filepath: &str) -> Result<()>

Source

fn load(filepath: &str) -> Result<NDArray<f64>>

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§