change input type of the function getSparsityTable()