pub struct OperationDescriptor<'comm> { /* private fields */ }Implementations§
Source§impl<'comm> OperationDescriptor<'comm>
impl<'comm> OperationDescriptor<'comm>
pub fn create_contraction( context: &Context<'comm>, a: &TensorDescriptor<'comm>, modes_a: &[Mode], op_a: Operator, b: &TensorDescriptor<'comm>, modes_b: &[Mode], op_b: Operator, c: &TensorDescriptor<'comm>, modes_c: &[Mode], op_c: Operator, d: &TensorDescriptor<'comm>, modes_d: &[Mode], compute: ComputeDescriptor, ) -> Result<Self>
Sourcepub unsafe fn from_raw(
handle: cutensorMpOperationDescriptor_t,
context: &Context<'comm>,
) -> Result<Self>
pub unsafe fn from_raw( handle: cutensorMpOperationDescriptor_t, context: &Context<'comm>, ) -> Result<Self>
Wraps an existing cuTENSORMp operation descriptor.
§Safety
handle must be a valid cuTENSORMp operation descriptor associated with
context. The returned value takes ownership of handle and destroys
it on drop.
pub const fn as_raw(&self) -> cutensorMpOperationDescriptor_t
Sourcepub fn into_raw(self) -> cutensorMpOperationDescriptor_t
pub fn into_raw(self) -> cutensorMpOperationDescriptor_t
Consumes this descriptor and returns the owned raw cuTENSORMp operation descriptor.
The caller becomes responsible for destroying the descriptor.
Trait Implementations§
Source§impl<'comm> Debug for OperationDescriptor<'comm>
impl<'comm> Debug for OperationDescriptor<'comm>
Source§impl Drop for OperationDescriptor<'_>
impl Drop for OperationDescriptor<'_>
Auto Trait Implementations§
impl<'comm> !Send for OperationDescriptor<'comm>
impl<'comm> !Sync for OperationDescriptor<'comm>
impl<'comm> Freeze for OperationDescriptor<'comm>
impl<'comm> RefUnwindSafe for OperationDescriptor<'comm>
impl<'comm> Unpin for OperationDescriptor<'comm>
impl<'comm> UnsafeUnpin for OperationDescriptor<'comm>
impl<'comm> UnwindSafe for OperationDescriptor<'comm>
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