class_docstr: Class for the general linear group GL(n) and its identity component.
  
  If `positive_det=True`, this is the connected component of the identity,
  i.e. the space of matrices with positive determinant.
  
  Parameters
  ----------
  n : int
      Integer representing the shape of the matrices: n x n.
  positive_det : bool
      Whether to restrict to the identity connected component of the
      general linear group, i.e. matrices with positive determinant.
      Optional, default: False.
code: def __init__(self, n, positive_det=False, equip=True):
      self.n = n
      super().__init__(
          dim=n**2,
          embedding_space=Matrices(n, n, equip=False),
          representation_dim=n,
          lie_algebra=SquareMatrices(n, equip=False),
          equip=equip,
      )
  
      self.positive_det = positive_det
  
imports: import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.geometry.base import VectorSpaceOpenSet
  from geomstats.geometry.lie_algebra import MatrixLieAlgebra
  from geomstats.geometry.lie_group import MatrixLieGroup
  from geomstats.geometry.matrices import Matrices, MatricesMetric
label_desc: Use image node_id 1 to create a new GeneralLinear object from inherited base classes: MatrixLieGroup, VectorSpaceOpenSet with example: obj = GeneralLinear(n, positive_det, equip)