BUG: sparse: fix downcast_intp_index to deal with empty arrays
BUG: sparse: fix downcast_intp_index to deal with empty arrays

fernand/scipy,chatcannon/scipy,sriki18/scipy,futurulus/scipy,anielsen001/scipy,ortylp/scipy,jjhelmus/scipy,mdhaber/scipy,mingwpy/scipy,lhilt/scipy,woodscn/scipy,gef756/scipy,njwilson23/scipy,mgaitan/scipy,dch312/scipy,e-q/scipy,josephcslater/scipy,njwilson23/scipy,WarrenWeckesser/scipy,matthew-brett/scipy,ales-erjavec/scipy,endolith/scipy,futurulus/scipy,njwilson23/scipy,hainm/scipy,behzadnouri/scipy,josephcslater/scipy,WarrenWeckesser/scipy,pbrod/scipy,anntzer/scipy,pnedunuri/scipy,jsilter/scipy,gfyoung/scipy,felipebetancur/scipy,woodscn/scipy,Shaswat27/scipy,andyfaff/scipy,aman-iitj/scipy,argriffing/scipy,jjhelmus/scipy,argriffing/scipy,Dapid/scipy,mortonjt/scipy,josephcslater/scipy,person142/scipy,jonycgn/scipy,befelix/scipy,larsmans/scipy,witcxc/scipy,mgaitan/scipy,pschella/scipy,kleskjr/scipy,FRidh/scipy,newemailjdm/scipy,jsilter/scipy,vberaudi/scipy,befelix/scipy,hainm/scipy,gertingold/scipy,piyush0609/scipy,FRidh/scipy,nvoron23/scipy,minhlongdo/scipy,Eric89GXL/scipy,maciejkula/scipy,aeklant/scipy,matthew-brett/scipy,endolith/scipy,rmcgibbo/scipy,aman-iitj/scipy,surhudm/scipy,mikebenfield/scipy,felipebetancur/scipy,sauliusl/scipy,ndchorley/scipy,ales-erjavec/scipy,pnedunuri/scipy,jor-/scipy,minhlongdo/scipy,grlee77/scipy,petebachant/scipy,WillieMaddox/scipy,niknow/scipy,josephcslater/scipy,futurulus/scipy,zxsted/scipy,jamestwebber/scipy,gertingold/scipy,matthewalbani/scipy,WarrenWeckesser/scipy,perimosocordiae/scipy,vhaasteren/scipy,aarchiba/scipy,nvoron23/scipy,futurulus/scipy,behzadnouri/scipy,Dapid/scipy,chatcannon/scipy,gdooper/scipy,giorgiop/scipy,gdooper/scipy,aeklant/scipy,jsilter/scipy,maciejkula/scipy,aman-iitj/scipy,haudren/scipy,surhudm/scipy,ChanderG/scipy,sonnyhu/scipy,dominicelse/scipy,hainm/scipy,Srisai85/scipy,zaxliu/scipy,pschella/scipy,jonycgn/scipy,mhogg/scipy,rgommers/scipy,efiring/scipy,nvoron23/scipy,chatcannon/scipy,mingwpy/scipy,witcxc/scipy,kalvdans/scipy,vanpact/scipy,nmayorov/scipy,dch312/scipy,maniteja123/scipy,jamestwebber/scipy,tylerjereddy/scipy,Shaswat27/scipy,fredrikw/scipy,jor-/scipy,aarchiba/scipy,ChanderG/scipy,Newman101/scipy,fernand/scipy,Stefan-Endres/scipy,jjhelmus/scipy,Shaswat27/scipy,niknow/scipy,haudren/scipy,cpaulik/scipy,scipy/scipy,FRidh/scipy,mtrbean/scipy,chatcannon/scipy,lhilt/scipy,pnedunuri/scipy,njwilson23/scipy,mhogg/scipy,surhudm/scipy,Eric89GXL/scipy,mingwpy/scipy,fredrikw/scipy,gfyoung/scipy,WillieMaddox/scipy,apbard/scipy,zaxliu/scipy,hainm/scipy,Eric89GXL/scipy,Kamp9/scipy,Newman101/scipy,lukauskas/scipy,Dapid/scipy,maniteja123/scipy,sriki18/scipy,trankmichael/scipy,Newman101/scipy,niknow/scipy,maciejkula/scipy,rgommers/scipy,josephcslater/scipy,grlee77/scipy,zxsted/scipy,mgaitan/scipy,giorgiop/scipy,lhilt/scipy,aarchiba/scipy,lukauskas/scipy,pbrod/scipy,sauliusl/scipy,larsmans/scipy,ilayn/scipy,jseabold/scipy,aman-iitj/scipy,Stefan-Endres/scipy,anntzer/scipy,bkendzior/scipy,vberaudi/scipy,ChanderG/scipy,sauliusl/scipy,kalvdans/scipy,jonycgn/scipy,nmayorov/scipy,witcxc/scipy,raoulbq/scipy,argriffing/scipy,jjhelmus/scipy,nonhermitian/scipy,ndchorley/scipy,sriki18/scipy,scipy/scipy,gef756/scipy,haudren/scipy,maniteja123/scipy,andim/scipy,efiring/scipy,arokem/scipy,pyramania/scipy,raoulbq/scipy,lukauskas/scipy,vigna/scipy,mortada/scipy,jseabold/scipy,nvoron23/scipy,giorgiop/scipy,anntzer/scipy,sauliusl/scipy,nmayorov/scipy,gdooper/scipy,mingwpy/scipy,grlee77/scipy,endolith/scipy,mortada/scipy,aeklant/scipy,trankmichael/scipy,perimosocordiae/scipy,pizzathief/scipy,pschella/scipy,newemailjdm/scipy,scipy/scipy,petebachant/scipy,apbard/scipy,Shaswat27/scipy,ortylp/scipy,nonhermitian/scipy,mgaitan/scipy,Shaswat27/scipy,andim/scipy,zaxliu/scipy,pizzathief/scipy,argriffing/scipy,sriki18/scipy,aman-iitj/scipy,petebachant/scipy,Shaswat27/scipy,gdooper/scipy,pizzathief/scipy,jonycgn/scipy,Srisai85/scipy,Gillu13/scipy,mortonjt/scipy,pbrod/scipy,behzadnouri/scipy,jseabold/scipy,ales-erjavec/scipy,perimosocordiae/scipy,vhaasteren/scipy,fredrikw/scipy,person142/scipy,kalvdans/scipy,jakevdp/scipy,ChanderG/scipy,woodscn/scipy,matthewalbani/scipy,lukauskas/scipy,Stefan-Endres/scipy,vberaudi/scipy,perimosocordiae/scipy,larsmans/scipy,maciejkula/scipy,minhlongdo/scipy,tylerjereddy/scipy,andyfaff/scipy,befelix/scipy,surhudm/scipy,mgaitan/scipy,jseabold/scipy,Eric89GXL/scipy,mtrbean/scipy,pnedunuri/scipy,mdhaber/scipy,WarrenWeckesser/scipy,sonnyhu/scipy,aarchiba/scipy,anielsen001/scipy,hainm/scipy,nvoron23/scipy,bkendzior/scipy,pyramania/scipy,jonycgn/scipy,Stefan-Endres/scipy,arokem/scipy,minhlongdo/scipy,haudren/scipy,niknow/scipy,tylerjereddy/scipy,WillieMaddox/scipy,kalvdans/scipy,vanpact/scipy,perimosocordiae/scipy,e-q/scipy,trankmichael/scipy,gef756/scipy,pyramania/scipy,richardotis/scipy,aeklant/scipy,gfyoung/scipy,nonhermitian/scipy,anielsen001/scipy,pnedunuri/scipy,lukauskas/scipy,mikebenfield/scipy,WarrenWeckesser/scipy,mtrbean/scipy,argriffing/scipy,gertingold/scipy,andyfaff/scipy,futurulus/scipy,ilayn/scipy,newemailjdm/scipy,haudren/scipy,rgommers/scipy,endolith/scipy,mhogg/scipy,larsmans/scipy,pschella/scipy,maciejkula/scipy,arokem/scipy,gef756/scipy,vberaudi/scipy,scipy/scipy,nonhermitian/scipy,behzadnouri/scipy,zxsted/scipy,fredrikw/scipy,FRidh/scipy,raoulbq/scipy,futurulus/scipy,vanpact/scipy,pbrod/scipy,newemailjdm/scipy,surhudm/scipy,mingwpy/scipy,nmayorov/scipy,niknow/scipy,larsmans/scipy,zaxliu/scipy,petebachant/scipy,ilayn/scipy,Eric89GXL/scipy,witcxc/scipy,rmcgibbo/scipy,petebachant/scipy,person142/scipy,aarchiba/scipy,Kamp9/scipy,rgommers/scipy,gdooper/scipy,mhogg/scipy,mikebenfield/scipy,pnedunuri/scipy,mgaitan/scipy,kleskjr/scipy,mortonjt/scipy,rmcgibbo/scipy,ilayn/scipy,piyush0609/scipy,gertingold/scipy,zaxliu/scipy,felipebetancur/scipy,Srisai85/scipy,ndchorley/scipy,lhilt/scipy,WarrenWeckesser/scipy,piyush0609/scipy,vhaasteren/scipy,kleskjr/scipy,befelix/scipy,aeklant/scipy,trankmichael/scipy,WillieMaddox/scipy,efiring/scipy,apbard/scipy,minhlongdo/scipy,raoulbq/scipy,minhlongdo/scipy,chatcannon/scipy,e-q/scipy,andyfaff/scipy,Newman101/scipy,pyramania/scipy,scipy/scipy,rmcgibbo/scipy,mdhaber/scipy,pizzathief/scipy,jor-/scipy,cpaulik/scipy,fredrikw/scipy,vigna/scipy,piyush0609/scipy,gef756/scipy,cpaulik/scipy,ortylp/scipy,anielsen001/scipy,vigna/scipy,richardotis/scipy,apbard/scipy,nonhermitian/scipy,mikebenfield/scipy,hainm/scipy,woodscn/scipy,matthew-brett/scipy,matthewalbani/scipy,mdhaber/scipy,witcxc/scipy,rmcgibbo/scipy,richardotis/scipy,maniteja123/scipy,giorgiop/scipy,sonnyhu/scipy,zerothi/scipy,Srisai85/scipy,zerothi/scipy,andim/scipy,kalvdans/scipy,mdhaber/scipy,zxsted/scipy,WillieMaddox/scipy,ndchorley/scipy,vhaasteren/scipy,Kamp9/scipy,felipebetancur/scipy,petebachant/scipy,zaxliu/scipy,vhaasteren/scipy,felipebetancur/scipy,WillieMaddox/scipy,woodscn/scipy,aman-iitj/scipy,ales-erjavec/scipy,efiring/scipy,vhaasteren/scipy,mortada/scipy,felipebetancur/scipy,jakevdp/scipy,kleskjr/scipy,jamestwebber/scipy,mortonjt/scipy,matthew-brett/scipy,anntzer/scipy,Eric89GXL/scipy,ortylp/scipy,gef756/scipy,anielsen001/scipy,argriffing/scipy,e-q/scipy,piyush0609/scipy,giorgiop/scipy,grlee77/scipy,sonnyhu/scipy,trankmichael/scipy,cpaulik/scipy,giorgiop/scipy,Gillu13/scipy,piyush0609/scipy,woodscn/scipy,andim/scipy,vigna/scipy,person142/scipy,andim/scipy,ilayn/scipy,grlee77/scipy,arokem/scipy,ndchorley/scipy,mikebenfield/scipy,vanpact/scipy,gfyoung/scipy,anntzer/scipy,gertingold/scipy,behzadnouri/scipy,mortada/scipy,mhogg/scipy,mortada/scipy,dch312/scipy,sauliusl/scipy,cpaulik/scipy,newemailjdm/scipy,jjhelmus/scipy,ilayn/scipy,behzadnouri/scipy,njwilson23/scipy,sonnyhu/scipy,lhilt/scipy,fredrikw/scipy,jamestwebber/scipy,ales-erjavec/scipy,efiring/scipy,matthewalbani/scipy,larsmans/scipy,fernand/scipy,sriki18/scipy,jor-/scipy,jsilter/scipy,jakevdp/scipy,jakevdp/scipy,mortonjt/scipy,vigna/scipy,ortylp/scipy,endolith/scipy,kleskjr/scipy,newemailjdm/scipy,rmcgibbo/scipy,FRidh/scipy,vberaudi/scipy,maniteja123/scipy,jakevdp/scipy,FRidh/scipy,richardotis/scipy,Kamp9/scipy,raoulbq/scipy,arokem/scipy,vberaudi/scipy,mtrbean/scipy,pizzathief/scipy,pyramania/scipy,endolith/scipy,ChanderG/scipy,tylerjereddy/scipy,bkendzior/scipy,mortada/scipy,matthewalbani/scipy,Srisai85/scipy,zerothi/scipy,pschella/scipy,ndchorley/scipy,zerothi/scipy,Newman101/scipy,andyfaff/scipy,fernand/scipy,ortylp/scipy,dominicelse/scipy,richardotis/scipy,raoulbq/scipy,jor-/scipy,tylerjereddy/scipy,haudren/scipy,maniteja123/scipy,njwilson23/scipy,sauliusl/scipy,Srisai85/scipy,zxsted/scipy,vanpact/scipy,ChanderG/scipy,matthew-brett/scipy,Kamp9/scipy,fernand/scipy,bkendzior/scipy,jseabold/scipy,richardotis/scipy,bkendzior/scipy,dch312/scipy,nmayorov/scipy,jsilter/scipy,surhudm/scipy,Stefan-Endres/scipy,trankmichael/scipy,andyfaff/scipy,zerothi/scipy,fernand/scipy,mhogg/scipy,ales-erjavec/scipy,Newman101/scipy,Dapid/scipy,zxsted/scipy,Stefan-Endres/scipy,dominicelse/scipy,lukauskas/scipy,Dapid/scipy,nvoron23/scipy,person142/scipy,efiring/scipy,dominicelse/scipy,pbrod/scipy,sonnyhu/scipy,chatcannon/scipy,sriki18/scipy,Gillu13/scipy,anntzer/scipy,gfyoung/scipy,mtrbean/scipy,dch312/scipy,jonycgn/scipy,niknow/scipy,vanpact/scipy,rgommers/scipy,Gillu13/scipy,pbrod/scipy,mtrbean/scipy,zerothi/scipy,apbard/scipy,scipy/scipy,mingwpy/scipy,e-q/scipy,Dapid/scipy,mdhaber/scipy,Kamp9/scipy,Gillu13/scipy,kleskjr/scipy,anielsen001/scipy,dominicelse/scipy,Gillu13/scipy,befelix/scipy,jseabold/scipy,andim/scipy,mortonjt/scipy,cpaulik/scipy,jamestwebber/scipy,perimosocordiae/scipy