pub struct ContractionFind { /* private fields */ }Implementations§
Source§impl ContractionFind
impl ContractionFind
pub fn create(context: &Context, algorithm: Algorithm) -> Result<Self>
pub fn create_default(context: &Context) -> Result<Self>
Sourcepub unsafe fn from_raw(
handle: cutensorMgContractionFind_t,
context: &Context,
algorithm: Algorithm,
) -> Result<Self>
pub unsafe fn from_raw( handle: cutensorMgContractionFind_t, context: &Context, algorithm: Algorithm, ) -> Result<Self>
Wraps an existing cuTENSORMg contraction find handle.
§Safety
handle must be a valid cuTENSORMg contraction find handle associated
with context and algorithm. The returned value takes ownership of
handle and destroys it on drop.
pub fn algorithm(&self) -> Algorithm
pub fn set_attribute<T>( &mut self, attr: ContractionFindAttribute, value: &T, ) -> Result<()>
pub const fn as_raw(&self) -> cutensorMgContractionFind_t
Sourcepub fn into_raw(self) -> cutensorMgContractionFind_t
pub fn into_raw(self) -> cutensorMgContractionFind_t
Consumes this find handle and returns the owned raw cuTENSORMg handle.
The caller becomes responsible for destroying the handle.
Trait Implementations§
Source§impl Debug for ContractionFind
impl Debug for ContractionFind
Source§impl Drop for ContractionFind
impl Drop for ContractionFind
Auto Trait Implementations§
impl !Send for ContractionFind
impl !Sync for ContractionFind
impl Freeze for ContractionFind
impl RefUnwindSafe for ContractionFind
impl Unpin for ContractionFind
impl UnsafeUnpin for ContractionFind
impl UnwindSafe for ContractionFind
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