vector

Function vector 

Source
pub fn vector<const L: usize>(vector: &SVector<f64, L>) -> SVector<Ad<L>, L>
Expand description

Creates a vector of active Ad values with specified input and vector dimensions

§Arguments

  • values - Slice of f64 values to convert to active Ad values

§Type Parameters

  • L - Both the input dimension (for gradients) and vector length

§Returns

An SVector of Ad<L> values where each element is active