Skip to main content

mobius_scalar_mul

Function mobius_scalar_mul 

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

Möbius scalar multiplication: scaling in hyperbolic space.

s ⊗_c v = (1/√c) * tanh(s * arctanh(√c * ||v||)) * v / ||v||

§Arguments

  • scalar - Multiplication factor
  • v - Vector on the Poincaré ball
  • curvature - Negative curvature K
  • epsilon - Numerical stability margin (e.g. 1e-5)