dendritic_ndarray::ops::unaryTrait UnaryOps
Source pub trait UnaryOps {
// Required methods
fn transpose(self) -> Result<NDArray<f64>, String>;
fn permute(self, indice_order: Vec<usize>) -> Result<NDArray<f64>, String>;
fn norm(&self, p: usize) -> Result<NDArray<f64>, String>;
fn signum(&self) -> Result<NDArray<f64>, String>;
fn sum_axis(&self, axis: usize) -> Result<NDArray<f64>, String>;
fn select_axis(
&self,
axis: usize,
indices: Vec<usize>,
) -> Result<NDArray<f64>, String>;
fn apply(
&self,
loss_func: fn(value: f64) -> f64,
) -> Result<NDArray<f64>, String>;
fn argmax(&self, axis: usize) -> NDArray<f64>;
fn argmin(&self, axis: usize) -> Result<NDArray<f64>, String>;
fn nonzero(&self) -> NDArray<f64>;
}