pub struct Applet {
pub compiled: Option<MachineCode<f64>>,
pub compiled_simd: Option<MachineCode<f64>>,
pub use_simd: bool,
pub use_threads: bool,
pub count_states: usize,
pub count_params: usize,
pub count_obs: usize,
pub count_diffs: usize,
}Fields§
§compiled: Option<MachineCode<f64>>§compiled_simd: Option<MachineCode<f64>>§use_simd: bool§use_threads: bool§count_states: usize§count_params: usize§count_obs: usize§count_diffs: usizeImplementations§
Source§impl Applet
impl Applet
pub fn new(app: Application) -> Result<Applet>
Sourcepub fn evaluate<T>(&mut self, args: &[T], outs: &mut [T])where
T: Element,
pub fn evaluate<T>(&mut self, args: &[T], outs: &mut [T])where
T: Element,
Generic evaluate function for compiled Symbolica expressions
Sourcepub fn evaluate_single<T>(&mut self, args: &[T]) -> T
pub fn evaluate_single<T>(&mut self, args: &[T]) -> T
Generic evaluate_single function for compiled Symbolica expressions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Applet
impl RefUnwindSafe for Applet
impl Send for Applet
impl Sync for Applet
impl Unpin for Applet
impl UnsafeUnpin for Applet
impl UnwindSafe for Applet
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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