#[repr(u32)]pub enum cutensorWorksizePreference_t {
CUTENSOR_WORKSPACE_MIN = 1,
CUTENSOR_WORKSPACE_DEFAULT = 2,
CUTENSOR_WORKSPACE_MAX = 3,
}Expand description
This enum gives users finer control over the suggested workspace.
This enum gives users finer control over the amount of workspace that is suggested by cutensorEstimateWorkspaceSize.
Variants§
CUTENSOR_WORKSPACE_MIN = 1
Least memory requirement; at least one algorithm will be available.
CUTENSOR_WORKSPACE_DEFAULT = 2
Aims to attain high performance while also reducing the workspace requirement.
CUTENSOR_WORKSPACE_MAX = 3
Highest memory requirement; all algorithms will be available (choose this option if memory footprint is not a concern).
Trait Implementations§
Source§impl Clone for cutensorWorksizePreference_t
impl Clone for cutensorWorksizePreference_t
Source§fn clone(&self) -> cutensorWorksizePreference_t
fn clone(&self) -> cutensorWorksizePreference_t
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for cutensorWorksizePreference_t
Source§impl Debug for cutensorWorksizePreference_t
impl Debug for cutensorWorksizePreference_t
impl Eq for cutensorWorksizePreference_t
Source§impl From<cutensorWorksizePreference_t> for u32
impl From<cutensorWorksizePreference_t> for u32
Source§fn from(enum_value: cutensorWorksizePreference_t) -> Self
fn from(enum_value: cutensorWorksizePreference_t) -> Self
Converts to this type from the input type.
Source§impl Hash for cutensorWorksizePreference_t
impl Hash for cutensorWorksizePreference_t
Source§impl Ord for cutensorWorksizePreference_t
impl Ord for cutensorWorksizePreference_t
Source§fn cmp(&self, other: &cutensorWorksizePreference_t) -> Ordering
fn cmp(&self, other: &cutensorWorksizePreference_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cutensorWorksizePreference_t
impl PartialEq for cutensorWorksizePreference_t
Source§fn eq(&self, other: &cutensorWorksizePreference_t) -> bool
fn eq(&self, other: &cutensorWorksizePreference_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cutensorWorksizePreference_t
impl PartialOrd for cutensorWorksizePreference_t
impl StructuralPartialEq for cutensorWorksizePreference_t
Source§impl TryFrom<u32> for cutensorWorksizePreference_t
impl TryFrom<u32> for cutensorWorksizePreference_t
Source§type Error = TryFromPrimitiveError<cutensorWorksizePreference_t>
type Error = TryFromPrimitiveError<cutensorWorksizePreference_t>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cutensorWorksizePreference_t
impl TryFromPrimitive for cutensorWorksizePreference_t
const NAME: &'static str = "cutensorWorksizePreference_t"
type Primitive = u32
type Error = TryFromPrimitiveError<cutensorWorksizePreference_t>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for cutensorWorksizePreference_t
impl RefUnwindSafe for cutensorWorksizePreference_t
impl Send for cutensorWorksizePreference_t
impl Sync for cutensorWorksizePreference_t
impl Unpin for cutensorWorksizePreference_t
impl UnsafeUnpin for cutensorWorksizePreference_t
impl UnwindSafe for cutensorWorksizePreference_t
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