class_docstr: Class for the vector space of Hermitian matrices of size n.
  
  Parameters
  ----------
  n : int
      Integer representing the shapes of the matrices: n x n.
class_docstr_tok: ["Class","for","the","vector","space","of","Hermitian","matrices","of","size","n.","Parameters","--","--","--","--","--","n",":","int","Integer","representing","the","shapes","of","the","matrices",":","n","x","n","."]
docstr: Compute the basis of the vector space of symmetric matrices.
  
  Returns
  -------
  basis : array-like, shape=[dim, n, n]
docstr_tok: ["Compute","the","basis","of","the","vector","space","of","symmetric","matrices",".","Returns","--","--","--","-","basis",":","array-like",",","shape=","[","dim",",","n",",","n","]"]
code: def _create_basis(self):
      """Compute the basis of the vector space of symmetric matrices.
  
      Returns
      -------
      basis : array-like, shape=[dim, n, n]
      """
      diagonal = []
      real_part = []
      complex_part = []
      for row in gs.arange(self.n):
          for col in gs.arange(row, self.n):
              if row == col:
                  indices = [(row, row)]
                  values = [1.0 + 0j]
                  diagonal.append(
                      gs.array_from_sparse(
                          indices, values, (self.n,) * 2
                      )
                  )
              else:
                  indices = [(row, col), (col, row)]
                  values = [1.0 + 0j, 1.0 + 0j]
                  real_part.append(
                      gs.array_from_sparse(
                          indices, values, (self.n,) * 2
                      )
                  )
                  values = [1j, -1j]
                  complex_part.append(
                      gs.array_from_sparse(
                          indices, values, (self.n,) * 2
                      )
                  )
      return gs.vstack(
          [
              gs.stack(diagonal),
              gs.stack(real_part),
              gs.stack(complex_part),
          ]
      )
  
file_path: geomstats/geomstats/geometry/hermitian_matrices.py
imports: import logging
  import geomstats.backend
  from geomstats import algebra_utils
  from geomstats.geometry.base import ComplexMatrixVectorSpace
  from geomstats.geometry.complex_matrices import ComplexMatrices, ComplexMatricesMetric
  from geomstats.geometry.matrices import Matrices
label_desc: Use image node_id 3 for calling the HermitianMatrices obj's underlying member method code with example usage: obj._create_basis() and returns: gs