Skip to main content

response_log_map

Function response_log_map 

Source
pub fn response_log_map(
    manifold: ResponseManifold,
    values: ArrayView2<'_, f64>,
    base: ArrayView1<'_, f64>,
) -> Result<Array2<f64>, String>
Expand description

Batched response-geometry logarithm: map every manifold-valued response row to its tangent coordinate at base. values is (n_rows, ambient), base is (ambient,), and the returned tangent is (n_rows, ambient) (the same flat ambient layout — the tangent of a matrix manifold is itself a flattened matrix). The scalar Gaussian GAMs the caller fits operate column-wise on this matrix exactly as they do for the sphere.