```linearIndex``` should be same like in the documentation ```index```