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: Compute the skew-symmetric component of a matrix.
  
  The skew-symmetric part of a matrix :math:`X` is defined by
  
  .. math::
      (X - X^T) / 2
  
  Parameters
  ----------
  mat : array-like, shape=[..., n, n]
      Matrix.
  
  Returns
  -------
  skew_sym : array-like, shape=[..., n, n]
      Skew-symmetric matrix.
docstr_tok: ["Compute","the","skew-symmetric","component","of","a","matrix",".","The","skew-symmetric","part","of","a","matrix",":","math",":","`","X","`","is","defined","by","..","math",":",":","(","X","-","X^T",")","\/","2","Parameters","--","--","--","--","--","mat",":","array-like",",","shape=","[","...",",","n",",","n","]","Matrix",".","Returns","--","--","--","-","skew_sym",":","array-like",",","shape=","[","...",",","n",",","n","]","Skew-symmetric","matrix","."]
code: def projection(cls, mat):
      r"""Compute the skew-symmetric component of a matrix.
  
      The skew-symmetric part of a matrix :math:`X` is defined by
  
      .. math::
          (X - X^T) / 2
  
      Parameters
      ----------
      mat : array-like, shape=[..., n, n]
          Matrix.
  
      Returns
      -------
      skew_sym : array-like, shape=[..., n, n]
          Skew-symmetric matrix.
      """
      return Matrices.to_skew_symmetric(mat)
  
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 6 for calling the SkewSymmetricMatrices obj's underlying member method code with example usage: obj.projection(cls, mat) and returns: Matrices