Ejemplo n.º 1
0
bool SparseMatrix::operator==(const SparseMatrix & sm)
{
  if (rows == sm.rows && cols == sm.cols && terms == sm.terms)
  {
    for (int i = 0; i < terms; ++i)
      if (!sm.HasTerm(smArray[i]))
        return false;
    return true;
  }
  else 
    return false;

  return true;
}