class_docstr: Class for complex manifolds.
  
  Parameters
  ----------
  dim : int
      Dimension of the manifold.
  shape : tuple of int
      Shape of one element of the manifold.
      Optional, default : None.
  default_coords_type : str, {'intrinsic', 'extrinsic', etc}
      Coordinate type.
      Optional, default: 'intrinsic'.
  equip : bool
      If True, equip space with default metric.
class_docstr_tok: ["Class","for","complex","manifolds",".","Parameters","--","--","--","--","--","dim",":","int","Dimension","of","the","manifold",".","shape",":","tuple","of","int","Shape","of","one","element","of","the","manifold",".","Optional",",","default",":","None",".","default_coords_type",":","str",",","{","'intrinsic","'",",","'extrinsic","'",",","etc","}","Coordinate","type",".","Optional",",","default",":","'intrinsic","'",".","equip",":","bool","If","True",",","equip","space","with","default","metric","."]
docstr: Generate random tangent vec.
  
  Parameters
  ----------
  n_samples : int
      Number of samples.
      Optional, default: 1.
  base_point :  array-like, shape=[..., *point_shape]
      Point.
  
  Returns
  -------
  tangent_vec : array-like, shape=[..., *point_shape]
      Tangent vec at base point.
docstr_tok: ["Generate","random","tangent","vec",".","Parameters","--","--","--","--","--","n_samples",":","int","Number","of","samples",".","Optional",",","default",":","1.","base_point",":","array-like",",","shape=","[","...",",","*","point_shape","]","Point",".","Returns","--","--","--","-","tangent_vec",":","array-like",",","shape=","[","...",",","*","point_shape","]","Tangent","vec","at","base","point","."]
code: def random_tangent_vec(self, base_point, n_samples=1):
      """Generate random tangent vec.
  
      Parameters
      ----------
      n_samples : int
          Number of samples.
          Optional, default: 1.
      base_point :  array-like, shape=[..., *point_shape]
          Point.
  
      Returns
      -------
      tangent_vec : array-like, shape=[..., *point_shape]
          Tangent vec at base point.
      """
      if (
          n_samples > 1
          and base_point.ndim > len(self.shape)
          and n_samples != len(base_point)
      ):
          raise ValueError(
              "The number of base points must be the same as the "
              "number of samples, when different from 1."
          )
      batch_size = () if n_samples == 1 else (n_samples,)
      vector = gs.random.normal(
          size=batch_size + self.shape, dtype=gs.get_default_cdtype()
      )
      return self.to_tangent(vector, base_point)
  
file_path: geomstats/geomstats/geometry/complex_manifold.py
imports: import abc
  import geomstats.backend
label_desc: Use image node_id 8 for calling the ComplexManifold obj's underlying member method code with example usage: obj.random_tangent_vec(base_point, n_samples) and returns: self