pub struct AutoDiffThunk<'ctx> { /* private fields */ }Expand description
An automatic differentiation thunk.
Implementations§
Source§impl<'ctx> AutoDiffThunk<'ctx>
impl<'ctx> AutoDiffThunk<'ctx>
Sourcepub fn kind(&self) -> AutoDiffThunkKind
pub fn kind(&self) -> AutoDiffThunkKind
Get the kind of autodiff thunk.
Sourcepub fn function(&self) -> Option<Function<'ctx>>
pub fn function(&self) -> Option<Function<'ctx>>
Get the original function being differentiated.
Sourcepub fn autodiff_function_kind(&self) -> Option<u64>
pub fn autodiff_function_kind(&self) -> Option<u64>
Get the autodiff function kind (forward, reverse, etc.).
Sourcepub fn function_type(&self) -> Option<ImplFunctionType<'ctx>>
pub fn function_type(&self) -> Option<ImplFunctionType<'ctx>>
Get the function type of this thunk (with full SIL conventions).
Sourcepub fn parameter_indices(&self) -> Option<&'ctx str>
pub fn parameter_indices(&self) -> Option<&'ctx str>
Get the parameter indices (as a string like “SSS” where S=selected, U=unselected).
Sourcepub fn result_indices(&self) -> Option<&'ctx str>
pub fn result_indices(&self) -> Option<&'ctx str>
Get the result indices (as a string like “S” where S=selected, U=unselected).
Sourcepub fn to_parameter_indices(&self) -> Option<&'ctx str>
pub fn to_parameter_indices(&self) -> Option<&'ctx str>
Get the “to” parameter indices for subset parameters thunks.
Trait Implementations§
Source§impl<'ctx> Clone for AutoDiffThunk<'ctx>
impl<'ctx> Clone for AutoDiffThunk<'ctx>
Source§fn clone(&self) -> AutoDiffThunk<'ctx>
fn clone(&self) -> AutoDiffThunk<'ctx>
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 AutoDiffThunk<'_>
impl Debug for AutoDiffThunk<'_>
impl<'ctx> Copy for AutoDiffThunk<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for AutoDiffThunk<'ctx>
impl<'ctx> RefUnwindSafe for AutoDiffThunk<'ctx>
impl<'ctx> !Send for AutoDiffThunk<'ctx>
impl<'ctx> !Sync for AutoDiffThunk<'ctx>
impl<'ctx> Unpin for AutoDiffThunk<'ctx>
impl<'ctx> UnsafeUnpin for AutoDiffThunk<'ctx>
impl<'ctx> UnwindSafe for AutoDiffThunk<'ctx>
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