class_docstr: Class for skew-symmetric matrices.
  
  Parameters
  ----------
  n : int
      Number of rows and columns.
class_docstr_tok: ["Class","for","skew-symmetric","matrices",".","Parameters","--","--","--","--","--","n",":","int","Number","of","rows","and","columns","."]
docstr: Create the canonical basis.
docstr_tok: ["Create","the","canonical","basis","."]
code: def _create_basis(self):
      """Create the canonical basis."""
      n = self.n
      if n == 2:
          return gs.array([[[0.0, -1.0], [1.0, 0.0]]])
      if n == 3:
          return gs.array(
              [
                  [[0.0, 0.0, 0.0], [0.0, 0.0, -1.0], [0.0, 1.0, 0.0]],
                  [[0.0, 0.0, 1.0], [0.0, 0.0, 0.0], [-1.0, 0.0, 0.0]],
                  [[0.0, -1.0, 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, 0.0]],
              ]
          )
      indices, data = [], []
      k = -1
      for row in range(n - 1):
          for col in range(row + 1, n):
              k += 1
              indices.extend([(k, row, col), (k, col, row)])
              data.extend([1.0, -1.0])
  
      return gs.array_from_sparse(indices, data, (k + 1, n, n))
  
file_path: geomstats/geomstats/geometry/skew_symmetric_matrices.py
imports: import geomstats.backend
  from geomstats.geometry.lie_algebra import MatrixLieAlgebra
  from geomstats.geometry.matrices import Matrices, MatricesMetric
label_desc: Use image node_id 3 for calling the SkewSymmetricMatrices obj's underlying member method code with example usage: obj._create_basis() and returns: gs, gs, gs