FnsOps

Trait FnsOps 

Source
pub trait FnsOps<T, S: Shape = (), D: Device = Self>: Device {
    // Required methods
    fn exp(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>;
    fn ln(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>;
    fn neg(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>;
    fn powf(&self, x: &Matrix<'_, T, D, S>, rhs: T) -> Matrix<'_, T, Self, S>;
    fn powi(&self, x: &Matrix<'_, T, D, S>, rhs: i32) -> Matrix<'_, T, Self, S>;
}

Required Methods§

Source

fn exp(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>

Source

fn ln(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>

Source

fn neg(&self, x: &Matrix<'_, T, D, S>) -> Matrix<'_, T, Self, S>

Source

fn powf(&self, x: &Matrix<'_, T, D, S>, rhs: T) -> Matrix<'_, T, Self, S>

Source

fn powi(&self, x: &Matrix<'_, T, D, S>, rhs: i32) -> Matrix<'_, T, Self, S>

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§

Source§

impl<T, D, S> FnsOps<T, S, D> for CPU
where T: Float, D: MainMemory, S: Shape,

Available on crate feature cpu only.
Source§

impl<T: CDatatype> FnsOps<T> for OpenCL

Available on crate feature opencl only.