@Override
	public IMatrix sub(IMatrix other) {
		//ako nisu jednake dimenzije, vrati iznimku
		if (this.getColsCount() != other.getColsCount() 
				|| this.getRowsCount() != other.getRowsCount()) {
			throw new IncompatibleOperandException(
					"Matrices have not same dimensions.");
		}
		for (int row = 0; row < this.getRowsCount(); row++) {
			for (int col = 0; col < this.getColsCount(); col++) {
				this.set(row, col, this.get(row, col)-other.get(row, col));
			}
		}
		return this;
	}