class_docstr: Class that defines operations using a hyperbolic metric.
class_docstr_tok: ["Class","that","defines","operations","using","a","hyperbolic","metric","."]
docstr: Compute the geodesic distance between two points.
  
  Parameters
  ----------
  point_a : array-like, shape=[..., dim + 1]
      First point in hyperbolic space.
  point_b : array-like, shape=[..., dim + 1]
      Second point in hyperbolic space.
  
  Returns
  -------
  dist : array-like, shape=[...,]
      Geodesic distance between the two points.
docstr_tok: ["Compute","the","geodesic","distance","between","two","points",".","Parameters","--","--","--","--","--","point_a",":","array-like",",","shape=","[","...",",","dim","+","1","]","First","point","in","hyperbolic","space",".","point_b",":","array-like",",","shape=","[","...",",","dim","+","1","]","Second","point","in","hyperbolic","space",".","Returns","--","--","--","-","dist",":","array-like",",","shape=","[","...",",","]","Geodesic","distance","between","the","two","points","."]
code: def dist(self, point_a, point_b):
      """Compute the geodesic distance between two points.
  
      Parameters
      ----------
      point_a : array-like, shape=[..., dim + 1]
          First point in hyperbolic space.
      point_b : array-like, shape=[..., dim + 1]
          Second point in hyperbolic space.
  
      Returns
      -------
      dist : array-like, shape=[...,]
          Geodesic distance between the two points.
      """
      embedding_metric = self._space.embedding_space.metric
      sq_norm_a = embedding_metric.squared_norm(point_a)
      sq_norm_b = embedding_metric.squared_norm(point_b)
      inner_prod = embedding_metric.inner_product(point_a, point_b)
  
      cosh_angle = -inner_prod / gs.sqrt(sq_norm_a * sq_norm_b)
      cosh_angle = gs.clip(cosh_angle, 1.0, 1e24)
  
      return gs.arccosh(cosh_angle)
  
imports: import math
  import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.geometry._hyperbolic import HyperbolicMetric, _Hyperbolic
  from geomstats.geometry.base import LevelSet
  from geomstats.geometry.minkowski import Minkowski
  from geomstats.vectorization import repeat_out
label_desc: Use image node_id 7 for calling the HyperboloidMetric obj's underlying member method code with example usage: obj.dist(point_a, point_b) and returns: gs