pub struct DeviceCpuRayon { /* private fields */ }Expand description
This is base device for Parallel CPU device.
This device is not intended to be used directly, but to be used as a base. Possible inherited devices could be Faer or Blas.
This device is intended not to implement DeviceAPI<T>.
Implementations§
Source§impl DeviceCpuRayon
impl DeviceCpuRayon
pub fn new(num_threads: usize) -> DeviceCpuRayon
Trait Implementations§
Source§impl Clone for DeviceCpuRayon
impl Clone for DeviceCpuRayon
Source§fn clone(&self) -> DeviceCpuRayon
fn clone(&self) -> DeviceCpuRayon
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceCpuRayon
impl Debug for DeviceCpuRayon
Source§impl Default for DeviceCpuRayon
impl Default for DeviceCpuRayon
Source§fn default() -> DeviceCpuRayon
fn default() -> DeviceCpuRayon
Returns the “default value” for a type. Read more
Source§impl DeviceBaseAPI for DeviceCpuRayon
impl DeviceBaseAPI for DeviceCpuRayon
fn same_device(&self, other: &DeviceCpuRayon) -> bool
fn default_order(&self) -> FlagOrder
fn set_default_order(&mut self, order: FlagOrder)
Source§impl DeviceRayonAPI for DeviceCpuRayon
impl DeviceRayonAPI for DeviceCpuRayon
Source§fn set_num_threads(&mut self, num_threads: usize)
fn set_num_threads(&mut self, num_threads: usize)
Set the number of threads for the device.
Source§fn get_num_threads(&self) -> usize
fn get_num_threads(&self) -> usize
Get the number of threads for the device. Read more
Source§fn get_pool(&self) -> &ThreadPool
fn get_pool(&self) -> &ThreadPool
Get the thread pool for the device. Read more
Source§fn get_current_pool(&self) -> Option<&ThreadPool>
fn get_current_pool(&self) -> Option<&ThreadPool>
Get the current thread pool for the device. Read more
Auto Trait Implementations§
impl Freeze for DeviceCpuRayon
impl !RefUnwindSafe for DeviceCpuRayon
impl Send for DeviceCpuRayon
impl Sync for DeviceCpuRayon
impl Unpin for DeviceCpuRayon
impl !UnwindSafe for DeviceCpuRayon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DTypePromoteAPI<T> for T
impl<T> DTypePromoteAPI<T> for T
const SAME_TYPE: bool = true
const CAN_CAST_SELF: bool = true
const CAN_CAST_OTHER: bool = true
type Res = T
fn promote_self(self) -> <T as DTypePromoteAPI<T>>::Res
fn promote_other(val: T) -> <T as DTypePromoteAPI<T>>::Res
fn promote_pair(self, val: T) -> (Self::Res, Self::Res)where
Self: Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more