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§
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>>
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.