Skip to main content

DatasetAD

Trait DatasetAD 

Source
pub trait DatasetAD<const N: usize>: Dataset {
    // Required method
    fn evaluate_ad_const<T: ParametersAD<Const<N>>, const P: usize>(
        &self,
        names: [String; P],
        parameters: &[f64],
        inputs: ArrayView2<'_, f64>,
    ) -> (Array1<f64>, Array2<f64>, Array1<bool>)
       where T::Lifted<DualSVec<f64, f64, P>>: Sync;

    // Provided method
    fn evaluate_ad<T: ParametersAD<Const<N>>>(
        &self,
        param_names: &[String],
        parameters: &[f64],
    ) -> (Array1<f64>, Array2<f64>, Array1<bool>)
       where T::Lifted<DualSVec<f64, f64, P>>: Sync { ... }
}
Expand description

Dataset that supports parameter-gradient evaluation for equations of state implementing ParametersAD<N>.

Required Methods§

Source

fn evaluate_ad_const<T: ParametersAD<Const<N>>, const P: usize>( &self, names: [String; P], parameters: &[f64], inputs: ArrayView2<'_, f64>, ) -> (Array1<f64>, Array2<f64>, Array1<bool>)
where T::Lifted<DualSVec<f64, f64, P>>: Sync,

Evaluate the property and its P parameter gradients.

Provided Methods§

Source

fn evaluate_ad<T: ParametersAD<Const<N>>>( &self, param_names: &[String], parameters: &[f64], ) -> (Array1<f64>, Array2<f64>, Array1<bool>)
where T::Lifted<DualSVec<f64, f64, P>>: Sync,

Evaluate the property and its parameter gradients at the given parameters.

  • param_names: names of the P parameters being differentiated.
  • params: the full parameter vector. Only entries listed in param_names are seeded.

This function dispatches the const-P methods at run-time.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§