ADVec

Trait ADVec 

Source
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§

Source

fn to_ad_vec(&self) -> Vec<AD>

Provided Methods§

Source

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.)

Implementations on Foreign Types§

Source§

impl ADVec for Vec<f64>

Source§

fn to_ad_vec(&self) -> Vec<AD>

Source§

impl ADVec for Vec<AD>

Source§

fn to_ad_vec(&self) -> Vec<AD>

Implementors§