DeviceCreationNumAPI

Trait DeviceCreationNumAPI 

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

Required Methods§

Source

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

Source

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

Source

fn arange_int_impl( &self, len: usize, ) -> Result<Storage<DataOwned<Self::Raw>, 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> DeviceCreationNumAPI<T> for DeviceCpuSerial
where T: Num + Clone, DeviceCpuSerial: DeviceRawAPI<T, Raw = Vec<T>>,

Source§

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