class_docstr: Class for Sub-Riemannian metrics.
  
  This implementation assumes a bracket-generating distribution of constant dimension.
  
  Only one of the arguments 'cometric_matrix' and 'frame' can be different from
  None. If the frame is supplied, it is assumed orthonormal.
  
  Parameters
  ----------
  space : Manifold object
  cometric_matrix : callable
      Optional, default: 'None'
  
      The cometric matrix as a function of a point.
  
      You should pass :
          base_point : array-like, shape=[..., dim]
      It returns:
          _ : array-like, shape=[..., dim, dim]
  
  frame : callable
      Optional, default: 'None'
  
      Matrix representing the frame spanning the distribution,
      as a function of a point.
  
      You should pass:
          point : array-like, shape=[..., dim]
      It returns
          _ : array-like, shape=[..., dim, dist_dim]
              Frame field matrix. Each column is a vector field of the frame
              spanning the distribution.
class_docstr_tok: ["Class","for","Sub-Riemannian","metrics",".","This","implementation","assumes","a","bracket-generating","distribution","of","constant","dimension",".","Only","one","of","the","arguments","'cometric_matrix","'","and","'frame","'","can","be","different","from","None",".","If","the","frame","is","supplied",",","it","is","assumed","orthonormal",".","Parameters","--","--","--","--","--","space",":","Manifold","object","cometric_matrix",":","callable","Optional",",","default",":","'None'","The","cometric","matrix","as","a","function","of","a","point",".","You","should","pass",":","base_point",":","array-like",",","shape=","[","...",",","dim","]","It","returns",":","_",":","array-like",",","shape=","[","...",",","dim",",","dim","]","frame",":","callable","Optional",",","default",":","'None'","Matrix","representing","the","frame","spanning","the","distribution",",","as","a","function","of","a","point",".","You","should","pass",":","point",":","array-like",",","shape=","[","...",",","dim","]","It","returns","_",":","array-like",",","shape=","[","...",",","dim",",","dist_dim","]","Frame","field","matrix",".","Each","column","is","a","vector","field","of","the","frame","spanning","the","distribution","."]
docstr: Compute a function which calculates a step of symplectic euler integration.
  
  Parameters
  ----------
  hamiltonian : callable
      The hamiltonian function from the tangent bundle to the reals.
  step_size : float
      Step size of the symplectic euler step
  
  Returns
  -------
  step : callable
      Given a state, 'step' returns the next symplectic euler step
docstr_tok: ["Compute","a","function","which","calculates","a","step","of","symplectic","euler","integration",".","Parameters","--","--","--","--","--","hamiltonian",":","callable","The","hamiltonian","function","from","the","tangent","bundle","to","the","reals",".","step_size",":","float","Step","size","of","the","symplectic","euler","step","Returns","--","--","--","-","step",":","callable","Given","a","state",",","'step","'","returns","the","next","symplectic","euler","step"]
code: def symp_euler(self, hamiltonian, step_size):
      r"""Compute a function which calculates a step of symplectic euler integration.
  
      Parameters
      ----------
      hamiltonian : callable
          The hamiltonian function from the tangent bundle to the reals.
      step_size : float
          Step size of the symplectic euler step
  
      Returns
      -------
      step : callable
          Given a state, 'step' returns the next symplectic euler step
      """
      return self._get_method("symp_euler")(hamiltonian, step_size)
  
file_path: geomstats/geomstats/geometry/sub_riemannian_metric.py
imports: import geomstats.backend
label_desc: Use image node_id 13 for calling the SubRiemannianMetric obj's underlying member method code with example usage: obj.symp_euler(hamiltonian, step_size) and returns: self