def dot(m1, m2, mult=1.0, target=None):
  """
  Find the dot product between m1 and m2.
  """

  if not target:
    m = _eigenmat.get_leading_dimension(m1.p_mat)
    n = _eigenmat.get_nonleading_dimension(m2.p_mat)

    target = empty((m, n))

  err_code = _eigenmat.dot(m1.p_mat, m2.p_mat, target.p_mat, ct.c_float(0.), ct.c_float(mult))
  if err_code:
    raise generate_exception(err_code)

  return target

  Find the dot product between m1 and m2.
  
eigenmat/eigenmat.py