class_docstr: Class for Riemannian and pseudo-Riemannian metrics.
  
  The associated Levi-Civita connection on the tangent bundle.
class_docstr_tok: ["Class","for","Riemannian","and","pseudo-Riemannian","metrics",".","The","associated","Levi-Civita","connection","on","the","tangent","bundle","."]
docstr: Multiply the metric by a scalar.
  
  This method multiplies the (0,2) metric tensor by a scalar. Note that this does
  not scale distances by the scalar. That would require multiplication by the
  square of the scalar.
  
  Parameters
  ----------
  scalar : float
      The number by which to multiply the metric.
  
  Returns
  -------
  metric : ScalarProductMetric
      The metric multiplied by the scalar
docstr_tok: ["Multiply","the","metric","by","a","scalar",".","This","method","multiplies","the","(","0,2",")","metric","tensor","by","a","scalar",".","Note","that","this","does","not","scale","distances","by","the","scalar",".","That","would","require","multiplication","by","the","square","of","the","scalar",".","Parameters","--","--","--","--","--","scalar",":","float","The","number","by","which","to","multiply","the","metric",".","Returns","--","--","--","-","metric",":","ScalarProductMetric","The","metric","multiplied","by","the","scalar"]
code: def __mul__(self, scalar):
      """Multiply the metric by a scalar.
  
      This method multiplies the (0,2) metric tensor by a scalar. Note that this does
      not scale distances by the scalar. That would require multiplication by the
      square of the scalar.
  
      Parameters
      ----------
      scalar : float
          The number by which to multiply the metric.
  
      Returns
      -------
      metric : ScalarProductMetric
          The metric multiplied by the scalar
      """
      from geomstats.geometry.scalar_product_metric import (
          ScalarProductMetric,
      )
  
      if not isinstance(scalar, float):
          return NotImplemented
      return ScalarProductMetric(self, scalar)
  
imports: from abc import ABC
  import joblib
  import geomstats.backend
  import geomstats.geometry
  from geomstats.geometry.connection import Connection
  from geomstats.vectorization import check_is_batch
label_desc: Use image node_id 2 for calling the RiemannianMetric obj's underlying member method code with example usage: obj.__mul__(scalar) and returns: ScalarProductMetric, NotImplemented