pub struct TNVM<C: ComplexScalar, const D: DifferentiationLevel> { /* private fields */ }Implementations§
Source§impl<C: ComplexScalar, const D: DifferentiationLevel> TNVM<C, D>
impl<C: ComplexScalar, const D: DifferentiationLevel> TNVM<C, D>
pub fn new( program: &Bytecode, const_map: Option<&FxHashMap<usize, C::R>>, ) -> Pin<Box<Self>>
Sourcepub fn evaluate<'a, const E: DifferentiationLevel>(
self: &'a mut Pin<Box<Self>>,
var_args: &[C::R],
) -> TNVMResult<'a, C>
pub fn evaluate<'a, const E: DifferentiationLevel>( self: &'a mut Pin<Box<Self>>, var_args: &[C::R], ) -> TNVMResult<'a, C>
Evaluate the TNVM with the provided arguments for all variable parameters.
pub fn num_params(&self) -> usize
pub fn out_shape(&self) -> GenerationShape
Auto Trait Implementations§
impl<C, const D: usize> Freeze for TNVM<C, D>
impl<C, const D: usize> RefUnwindSafe for TNVM<C, D>
impl<C, const D: usize> !Send for TNVM<C, D>
impl<C, const D: usize> !Sync for TNVM<C, D>
impl<C, const D: usize> !Unpin for TNVM<C, D>
impl<C, const D: usize> UnwindSafe for TNVM<C, D>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?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