class_docstr: Class for space of one dimensional functions with norm 1.
  
  The tangent space is given by functions that have
  zero inner-product with the base point
  
  Parameters
  ----------
  domain : array-like, shape=[n_samples,]
      Grid points on the domain.
  
  References
  ----------
  .. [Sea2016] Srivastava, Anuj, and Eric P. Klassen.
      Functional and shape data analysis.
      Vol. 1. New York: Springer, 2016.
class_docstr_tok: ["Class","for","space","of","one","dimensional","functions","with","norm","1",".","The","tangent","space","is","given","by","functions","that","have","zero","inner-product","with","the","base","point","Parameters","--","--","--","--","--","domain",":","array-like",",","shape=","[","n_samples",",","]","Grid","points","on","the","domain",".","References","--","--","--","--","--","..","[","Sea2016","]","Srivastava",",","Anuj",",","and","Eric","P.","Klassen",".","Functional","and","shape","data","analysis",".","Vol",".","1",".","New","York",":","Springer",",","2016","."]
docstr: Project a vector to a tangent space of the manifold.
  
  Parameters
  ----------
  vector : array-like, shape=[..., n_samples]
      Vector.
  base_point : array-like, shape=[..., n_samples]
      Point on the manifold.
  
  Returns
  -------
  tangent_vec : array-like, shape=[..., n_samples]
      Tangent vector at base point.
docstr_tok: ["Project","a","vector","to","a","tangent","space","of","the","manifold",".","Parameters","--","--","--","--","--","vector",":","array-like",",","shape=","[","...",",","n_samples","]","Vector",".","base_point",":","array-like",",","shape=","[","...",",","n_samples","]","Point","on","the","manifold",".","Returns","--","--","--","-","tangent_vec",":","array-like",",","shape=","[","...",",","n_samples","]","Tangent","vector","at","base","point","."]
code: def to_tangent(self, vector, base_point):
      """Project a vector to a tangent space of the manifold.
  
      Parameters
      ----------
      vector : array-like, shape=[..., n_samples]
          Vector.
      base_point : array-like, shape=[..., n_samples]
          Point on the manifold.
  
      Returns
      -------
      tangent_vec : array-like, shape=[..., n_samples]
          Tangent vector at base point.
      """
      sq_norm = self.metric.squared_norm(base_point)
      inner_product = self.metric.inner_product(vector, base_point)
      coef = inner_product / sq_norm
      return vector - gs.einsum("...,...j->...j", coef, base_point)
  
file_path: geomstats/geomstats/geometry/functions.py
imports: import math
  import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.geometry.manifold import Manifold
  from geomstats.geometry.riemannian_metric import RiemannianMetric
label_desc: Use image node_id 6 for calling the HilbertSphere obj's underlying member method code with example usage: obj.to_tangent(vector, base_point) and returns: unknown