class_docstr: Class for Hermitian metrics.
  
  As a Riemannian metric, the Hermitian metric is:
  
  - flat: the inner-product is independent of the base point.
  - positive definite: it has signature (dimension, 0, 0),
    where dimension is the dimension of the Hermitian space.
docstr: Compute the inner-product matrix, independent of the base point.
  
  Parameters
  ----------
  base_point : array-like, shape=[..., dim]
      Base point.
      Optional, default: None.
  
  Returns
  -------
  inner_prod_mat : array-like, shape=[..., dim, dim]
      Inner-product matrix.
docstr_tok: ["Compute","the","inner-product","matrix",",","independent","of","the","base","point",".","Parameters","--","--","--","--","--","base_point",":","array-like",",","shape=","[","...",",","dim","]","Base","point",".","Optional",",","default",":","None",".","Returns","--","--","--","-","inner_prod_mat",":","array-like",",","shape=","[","...",",","dim",",","dim","]","Inner-product","matrix","."]
code: def metric_matrix(self, base_point=None):
      """Compute the inner-product matrix, independent of the base point.
  
      Parameters
      ----------
      base_point : array-like, shape=[..., dim]
          Base point.
          Optional, default: None.
  
      Returns
      -------
      inner_prod_mat : array-like, shape=[..., dim, dim]
          Inner-product matrix.
      """
      mat = gs.eye(self._space.dim, dtype=gs.get_default_cdtype())
      if base_point is not None and base_point.ndim > 1:
          return gs.broadcast_to(
              mat, base_point.shape + (self._space.dim,)
          )
      return mat
  
file_path: geomstats/geomstats/geometry/hermitian.py
imports: import geomstats.backend
  from geomstats.geometry.base import ComplexVectorSpace
  from geomstats.geometry.complex_riemannian_metric import ComplexRiemannianMetric
label_desc: Use image node_id 1 for calling the HermitianMetric obj's underlying member method code with example usage: obj.metric_matrix(base_point) and returns: mat, gs