Skip to main content

DeviceCreationTriAPI

Trait DeviceCreationTriAPI 

Source
pub trait DeviceCreationTriAPI<T>: DeviceRawAPI<T> {
    // Required methods
    fn tril_impl<D>(
        &self,
        raw: &mut Self::Raw,
        layout: &Layout<D>,
        k: isize,
    ) -> Result<()>
       where D: DimAPI;
    fn triu_impl<D>(
        &self,
        raw: &mut Self::Raw,
        layout: &Layout<D>,
        k: isize,
    ) -> Result<()>
       where D: DimAPI;
}

Required Methods§

Source

fn tril_impl<D>( &self, raw: &mut Self::Raw, layout: &Layout<D>, k: isize, ) -> Result<()>
where D: DimAPI,

Source

fn triu_impl<D>( &self, raw: &mut Self::Raw, layout: &Layout<D>, k: isize, ) -> Result<()>
where D: DimAPI,

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> DeviceCreationTriAPI<T> for DeviceCpuSerial
where T: Num + Clone,

Source§

impl<T> DeviceCreationTriAPI<T> for DeviceFaer
where T: Num + Clone, Self: DeviceRawAPI<T, Raw = Vec<T>>,