apply and update for GMat using GIMat indices