class_docstr: Class for the positive reals metric.
  
  It is a particular case in dimension 1
  of the SPD affine-invariant metric
  with a power affine coefficient equal to one.
class_docstr_tok: ["Class","for","the","positive","reals","metric",".","It","is","a","particular","case","in","dimension","1","of","the","SPD","affine-invariant","metric","with","a","power","affine","coefficient","equal","to","one","."]
docstr: Compute the inner product matrix at base point.
  
  Parameters
  ----------
  base_point : array-like, shape=[..., 1]
      Base point.
  
  Returns
  -------
  inner_prod_mat : array-like, shape=[..., 1, 1]
      Inner product matrix.
docstr_tok: ["Compute","the","inner","product","matrix","at","base","point",".","Parameters","--","--","--","--","--","base_point",":","array-like",",","shape=","[","...",",","1","]","Base","point",".","Returns","--","--","--","-","inner_prod_mat",":","array-like",",","shape=","[","...",",","1",",","1","]","Inner","product","matrix","."]
code: def metric_matrix(self, base_point):
      """Compute the inner product matrix at base point.
  
      Parameters
      ----------
      base_point : array-like, shape=[..., 1]
          Base point.
  
      Returns
      -------
      inner_prod_mat : array-like, shape=[..., 1, 1]
          Inner product matrix.
      """
      inner_prod_mat = 1 / base_point**2
      return gs.expand_dims(inner_prod_mat, axis=-1)
  
file_path: geomstats/geomstats/geometry/positive_reals.py
imports: import geomstats.backend
  from geomstats.geometry.base import VectorSpaceOpenSet
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.riemannian_metric import RiemannianMetric
label_desc: Use image node_id 1 for calling the PositiveRealsMetric obj's underlying member method code with example usage: obj.metric_matrix(base_point) and returns: gs