exp_map

Function exp_map 

Source
pub fn exp_map(v: &[f32], curvature: f32) -> Vec<f32>
Expand description

Exponential map: project from tangent space at origin to the Poincare ball.

Maps a Euclidean vector v from the tangent space T_0 B^n at the origin to a point on the Poincare ball.

exp_0(v) = tanh(sqrt(-c) * ||v|| / 2) * v / (sqrt(-c) * ||v||)

§Arguments

  • v - Vector in tangent space
  • curvature - Curvature of the space (negative for hyperbolic)

§Returns

Point in the Poincare ball.