pub trait ADVec: JetVec {
// Required method
fn to_ad_vec(&self) -> Vec<AD> ⓘ;
// Provided method
fn to_f64_vec_compat(&self) -> Vec<f64> { ... }
}Expand description
Backward compatibility trait: provides to_ad_vec and to_f64_vec on vector types.
Extends JetVec with the to_ad_vec method for converting to Vec<AD> (= Vec<Jet<2>>).
Required Methods§
Provided Methods§
Sourcefn to_f64_vec_compat(&self) -> Vec<f64>
fn to_f64_vec_compat(&self) -> Vec<f64>
Convert to a Vec<f64> by extracting the value of each jet.
(Delegates to JetVec::to_f64_vec — provided here so the trait is self-contained.)