pub struct CompiledDa {
pub dim: u32,
pub ord: u32,
pub vars: u32,
pub terms: u32,
/* private fields */
}Expand description
A compiled evaluation tree over one or more DAs (C++ compiledDA):
precomputed Horner-tree coefficients that can be evaluated repeatedly
at low cost.
Fields§
§dim: u32Number of component DAs.
ord: u32Maximum order of the tree.
vars: u32Number of variables used.
terms: u32Number of terms (including the root).
Implementations§
Source§impl CompiledDa
impl CompiledDa
Sourcepub fn from_das(das: &[Da]) -> CompiledDa
pub fn from_das(das: &[Da]) -> CompiledDa
Compile several DAs (same context) into one shared tree
(daceEvalTree).
§Panics
Panics with crate::DaceError when the DAs belong to different contexts.
Trait Implementations§
Source§impl Clone for CompiledDa
impl Clone for CompiledDa
Auto Trait Implementations§
impl Freeze for CompiledDa
impl RefUnwindSafe for CompiledDa
impl Send for CompiledDa
impl Sync for CompiledDa
impl Unpin for CompiledDa
impl UnsafeUnpin for CompiledDa
impl UnwindSafe for CompiledDa
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