DeviceCreationNumAPI

Trait DeviceCreationNumAPI 

Source
pub trait DeviceCreationNumAPI<T>: DeviceRawAPI<T>
where T: Num,
{ // Required methods fn zeros_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>; fn ones_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>; fn arange_int_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>; }

Required Methods§

Source

fn zeros_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>

Source

fn ones_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>

Source

fn arange_int_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, T, Self>, Error>

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> DeviceCreationNumAPI<T> for DeviceOpenBLAS
where T: Num + Clone, Self: DeviceRawAPI<T, Raw = Vec<T>>,

Source§

impl<T> DeviceCreationNumAPI<T> for DeviceCpuSerial
where T: Num + Clone, DeviceCpuSerial: DeviceRawAPI<T, Raw = Vec<T>>,