class_docstr: Class for the space of matrices (m, n).
  
  Parameters
  ----------
  m, n : int
      Integers representing the shapes of the matrices: m x n.
class_docstr_tok: ["Class","for","the","space","of","matrices","(","m",",","n",")",".","Parameters","--","--","--","--","--","m",",","n",":","int","Integers","representing","the","shapes","of","the","matrices",":","m","x","n","."]
docstr: Compute the commutator of a and b, i.e. `[a, b] = ab - ba`.
  
  Parameters
  ----------
  mat_a : array-like, shape=[..., n, n]
      Matrix.
  mat_b : array-like, shape=[..., n, n]
      Matrix.
  
  Returns
  -------
  mat_c : array-like, shape=[..., n, n]
      Commutator.
docstr_tok: ["Compute","the","commutator","of","a","and","b",",","i.e",".","`","[","a",",","b","]","=","ab","-","ba","`",".","Parameters","--","--","--","--","--","mat_a",":","array-like",",","shape=","[","...",",","n",",","n","]","Matrix",".","mat_b",":","array-like",",","shape=","[","...",",","n",",","n","]","Matrix",".","Returns","--","--","--","-","mat_c",":","array-like",",","shape=","[","...",",","n",",","n","]","Commutator","."]
code: def bracket(cls, mat_a, mat_b):
      """Compute the commutator of a and b, i.e. `[a, b] = ab - ba`.
  
      Parameters
      ----------
      mat_a : array-like, shape=[..., n, n]
          Matrix.
      mat_b : array-like, shape=[..., n, n]
          Matrix.
  
      Returns
      -------
      mat_c : array-like, shape=[..., n, n]
          Commutator.
      """
      return cls.mul(mat_a, mat_b) - cls.mul(mat_b, mat_a)
  
imports: import logging
  import math
  from functools import reduce
  import geomstats.backend
  import geomstats.errors
  from geomstats.algebra_utils import flip_determinant, from_vector_to_diagonal_matrix
  from geomstats.geometry.base import MatrixVectorSpace
  from geomstats.geometry.euclidean import EuclideanMetric
  from geomstats.vectorization import repeat_out
label_desc: Use image node_id 7 for calling the Matrices obj's underlying member method code with example usage: obj.bracket(cls, mat_a, mat_b) and returns: unknown