dendritic_ndarray::ops::unary

Trait 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>;
}

Required Methods§

Source

fn transpose(self) -> Result<NDArray<f64>, String>

Source

fn permute(self, indice_order: Vec<usize>) -> Result<NDArray<f64>, String>

Source

fn norm(&self, p: usize) -> Result<NDArray<f64>, String>

Source

fn signum(&self) -> Result<NDArray<f64>, String>

Source

fn sum_axis(&self, axis: usize) -> Result<NDArray<f64>, String>

Source

fn select_axis( &self, axis: usize, indices: Vec<usize>, ) -> Result<NDArray<f64>, String>

Source

fn apply( &self, loss_func: fn(value: f64) -> f64, ) -> Result<NDArray<f64>, String>

Source

fn argmax(&self, axis: usize) -> NDArray<f64>

Source

fn argmin(&self, axis: usize) -> Result<NDArray<f64>, String>

Source

fn nonzero(&self) -> NDArray<f64>

Implementors§