Trait rustml::ops_inplace::FunctionsInPlace [] [src]

pub trait FunctionsInPlace {
    fn isigmoid(&mut self);
    fn isigmoid_derivative(&mut self);
    fn irecip(&mut self);
}

Trait for common mathematical functions for scalars, vectors and matrices.

Required Methods

fn isigmoid(&mut self)

Computes the sigmoid function (i.e. 1/(1+exp(-x))) for a scalar or each element in a vector or matrix.

fn isigmoid_derivative(&mut self)

Computes the derivative of the sigmoid function (i.e. sigmoid(x) * (1 - sigmoid(x))) for a scalar or each element in a vector or matrix.

fn irecip(&mut self)

Takes the reciprocal.

Implementors