remove redundant code, fix bounds in those loops that still come from fortran
remove redundant code, fix bounds in those loops that still come from
fortran

ritsu1228/eigen,TSC21/Eigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,TSC21/Eigen,Zefz/eigen,ritsu1228/eigen,toastedcrumpets/eigen,Zefz/eigen,toastedcrumpets/eigen,pasuka/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,TSC21/Eigen,ritsu1228/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,Zefz/eigen,toastedcrumpets/eigen,toastedcrumpets/eigen,TSC21/Eigen,pasuka/eigen,Zefz/eigen