Skip to main content

paths_to_array

Function paths_to_array 

Source
pub fn paths_to_array<M>(
    paths: &[Vec<M::Point>],
    manifold: &M,
    ref_point: &M::Point,
) -> Array3<f64>
where M: Manifold, M::Point: Clone, M::Tangent: AsRef<[f64]>,
Expand description

Flatten manifold SDE paths into a 3-D array by applying log from a reference point.

Shape: (n_paths, n_steps+1, tangent_dim). Requires M::Tangent: AsRef<[f64]>, which holds for nalgebra::SVector<f64, N>. If log fails for a point (cut locus), that entry is filled with NaN.