Interpret matrix as transformation (#692)