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 product of matrices a1, ..., an.
  
  Parameters
  ----------
  a1 : array-like, shape=[..., dim_1, dim_2]
      Matrix.
  a2 : array-like, shape=[..., dim_2, dim_3]
      Matrix.
  ...
  an : array-like, shape=[..., dim_n-1, dim_n]
      Matrix.
  
  Returns
  -------
  mul : array-like, shape=[..., dim_1, dim_n]
      Result of the product of matrices.
docstr_tok: ["Compute","the","product","of","matrices","a1",",","...",",","an",".","Parameters","--","--","--","--","--","a1",":","array-like",",","shape=","[","...",",","dim_1",",","dim_2","]","Matrix",".","a2",":","array-like",",","shape=","[","...",",","dim_2",",","dim_3","]","Matrix",".","...","an",":","array-like",",","shape=","[","...",",","dim_n-1",",","dim_n","]","Matrix",".","Returns","--","--","--","-","mul",":","array-like",",","shape=","[","...",",","dim_1",",","dim_n","]","Result","of","the","product","of","matrices","."]
code: def mul(*args):
      """Compute the product of matrices a1, ..., an.
  
      Parameters
      ----------
      a1 : array-like, shape=[..., dim_1, dim_2]
          Matrix.
      a2 : array-like, shape=[..., dim_2, dim_3]
          Matrix.
      ...
      an : array-like, shape=[..., dim_n-1, dim_n]
          Matrix.
  
      Returns
      -------
      mul : array-like, shape=[..., dim_1, dim_n]
          Result of the product of matrices.
      """
      return reduce(gs.matmul, args)
  
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 6 for calling the Matrices obj's underlying member method code with example usage: obj.mul() and returns: reduce