Raise error in case index transformation is not linear

Raise error in case index transformation is not linear