@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (obj.getClass() == this.getClass()) {
			Matrix m = (Matrix) obj;
			for (int i = 0; i < m.rows; i++) {
				for (int j = 0; j < m.columns; j++) {
					if (this.getElement(j, i) != m.getElement(j, i)) {
						return false;
					}
				}
			}
		}
		return true;
	}