public boolean equalsMat(Matrix mat)
	{
		if (this == null && mat == null)
			return true;
		if (this == null || mat == null)
			return false;
		
		if (this.row != mat.rows() || this.col != mat.cols())
			return false;
		for (int i = 0; i < row; i++)
		{
			for (int j = 0; j < col; j++)
			{
				if (!matrix[i][j].equals(mat.get(i, j)))
					return false;
			}
		}
		return true;
	}