DiagflatOp

Trait DiagflatOp 

Source
pub trait DiagflatOp<T, D: Device = Self>: Device {
    // Required method
    fn diagflat(&self, x: &Matrix<'_, T, D>) -> Matrix<'_, T, Self>;
}

Required Methods§

Source

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

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: CDatatype> DiagflatOp<T> for OpenCL

Available on crate feature opencl only.
Source§

impl<T: Default + Copy, D: MainMemory> DiagflatOp<T, D> for CPU

Available on crate feature cpu only.