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: Compute scalar curvature at base_point.
  
  In the literature scalar_curvature is noted S and writes:
  :math:`S = g^{ij} Ric_{ij}`,
  with Einstein notation, where we recognize the trace of the Ricci
  tensor according to the Riemannian metric :math:`g`.
  
  Parameters
  ----------
  base_point :  array-like, shape=[..., dim]
      Point on the manifold.
  
  Returns
  -------
  curvature : array-like, shape=[...,]
      Scalar curvature.
docstr_tok: ["Compute","scalar","curvature","at","base_point",".","In","the","literature","scalar_curvature","is","noted","S","and","writes",":",":","math",":","`","S","=","g^","{","ij","}","Ric_","{","ij","}","`",",","with","Einstein","notation",",","where","we","recognize","the","trace","of","the","Ricci","tensor","according","to","the","Riemannian","metric",":","math",":","`","g","`",".","Parameters","--","--","--","--","--","base_point",":","array-like",",","shape=","[","...",",","dim","]","Point","on","the","manifold",".","Returns","--","--","--","-","curvature",":","array-like",",","shape=","[","...",",","]","Scalar","curvature","."]
code: def scalar_curvature(self, base_point):
      r"""Compute scalar curvature at base_point.
  
      In the literature scalar_curvature is noted S and writes:
      :math:`S = g^{ij} Ric_{ij}`,
      with Einstein notation, where we recognize the trace of the Ricci
      tensor according to the Riemannian metric :math:`g`.
  
      Parameters
      ----------
      base_point :  array-like, shape=[..., dim]
          Point on the manifold.
  
      Returns
      -------
      curvature : array-like, shape=[...,]
          Scalar curvature.
      """
      ricci_tensor = self.ricci_tensor(base_point)
      cometric_matrix = self.cometric_matrix(base_point)
      return gs.einsum(
          "...ij, ...ij -> ...", cometric_matrix, ricci_tensor
      )
  
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 24 for calling the RiemannianMetric obj's underlying member method code with example usage: obj.scalar_curvature(base_point) and returns: gs