fix logic error in loop unrolling (#12427)
fix logic error in loop unrolling (#12427)


Stefan-Endres/scipy,nmayorov/scipy,nmayorov/scipy,grlee77/scipy,WarrenWeckesser/scipy,ilayn/scipy,e-q/scipy,rgommers/scipy,andyfaff/scipy,zerothi/scipy,ilayn/scipy,andyfaff/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,andyfaff/scipy,e-q/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,endolith/scipy,mdhaber/scipy,zerothi/scipy,scipy/scipy,vigna/scipy,Eric89GXL/scipy,scipy/scipy,grlee77/scipy,tylerjereddy/scipy,vigna/scipy,anntzer/scipy,nmayorov/scipy,Stefan-Endres/scipy,vigna/scipy,Stefan-Endres/scipy,anntzer/scipy,nmayorov/scipy,rgommers/scipy,e-q/scipy,mdhaber/scipy,perimosocordiae/scipy,tylerjereddy/scipy,matthew-brett/scipy,e-q/scipy,grlee77/scipy,endolith/scipy,Eric89GXL/scipy,grlee77/scipy,perimosocordiae/scipy,anntzer/scipy,nmayorov/scipy,zerothi/scipy,rgommers/scipy,vigna/scipy,mdhaber/scipy,andyfaff/scipy,anntzer/scipy,Stefan-Endres/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,WarrenWeckesser/scipy,e-q/scipy,tylerjereddy/scipy,perimosocordiae/scipy,grlee77/scipy,Eric89GXL/scipy,vigna/scipy,ilayn/scipy,anntzer/scipy,perimosocordiae/scipy,endolith/scipy,anntzer/scipy,endolith/scipy,Eric89GXL/scipy,zerothi/scipy,Eric89GXL/scipy,ilayn/scipy,Eric89GXL/scipy,rgommers/scipy,mdhaber/scipy,matthew-brett/scipy,perimosocordiae/scipy,scipy/scipy,rgommers/scipy,scipy/scipy,mdhaber/scipy,tylerjereddy/scipy,matthew-brett/scipy,scipy/scipy,endolith/scipy,andyfaff/scipy,andyfaff/scipy,mdhaber/scipy,endolith/scipy,matthew-brett/scipy,tylerjereddy/scipy,zerothi/scipy,ilayn/scipy,WarrenWeckesser/scipy,scipy/scipy,matthew-brett/scipy,zerothi/scipy,ilayn/scipy