pub trait DaVector {
// Required methods
fn cons(&self) -> Vec<f64>;
fn linear(&self) -> Vec<Vec<f64>>;
fn deriv(&self, var: u32) -> Vec<Da>;
fn integ(&self, var: u32) -> Vec<Da>;
fn eval(&self, args: &[f64]) -> Vec<f64>;
fn plug(&self, var: u32, val: f64) -> Vec<Da>;
fn trim(&self, min_order: u32, max_order: u32) -> Vec<Da>;
fn invert(&self) -> Vec<Da>;
}Expand description
Elementwise operations on vectors of DAs (C++ AlgebraicVector<DA>).
Required Methods§
Sourcefn linear(&self) -> Vec<Vec<f64>>
fn linear(&self) -> Vec<Vec<f64>>
The linear-part matrix (row per component, column per variable).
Sourcefn deriv(&self, var: u32) -> Vec<Da>
fn deriv(&self, var: u32) -> Vec<Da>
Elementwise derivative with respect to variable var (1-based).
Sourcefn integ(&self, var: u32) -> Vec<Da>
fn integ(&self, var: u32) -> Vec<Da>
Elementwise integral with respect to variable var (1-based).
Sourcefn plug(&self, var: u32, val: f64) -> Vec<Da>
fn plug(&self, var: u32, val: f64) -> Vec<Da>
Elementwise partial evaluation of variable var (1-based).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".