MAINT:sparse: warn on todia() with many diagonals
MAINT:sparse: warn on todia() with many diagonals

Also: minor optimization using `return_inverse=True`
surhudm/scipy,matthew-brett/scipy,minhlongdo/scipy,vigna/scipy,chatcannon/scipy,jor-/scipy,fredrikw/scipy,rgommers/scipy,larsmans/scipy,lhilt/scipy,person142/scipy,lhilt/scipy,matthewalbani/scipy,pizzathief/scipy,endolith/scipy,larsmans/scipy,apbard/scipy,ilayn/scipy,pschella/scipy,anielsen001/scipy,kalvdans/scipy,sriki18/scipy,argriffing/scipy,Stefan-Endres/scipy,behzadnouri/scipy,andyfaff/scipy,dominicelse/scipy,behzadnouri/scipy,anntzer/scipy,kalvdans/scipy,kalvdans/scipy,WarrenWeckesser/scipy,kalvdans/scipy,pschella/scipy,futurulus/scipy,Shaswat27/scipy,minhlongdo/scipy,sriki18/scipy,andim/scipy,nmayorov/scipy,tylerjereddy/scipy,haudren/scipy,lhilt/scipy,mdhaber/scipy,josephcslater/scipy,Stefan-Endres/scipy,zerothi/scipy,endolith/scipy,nonhermitian/scipy,Shaswat27/scipy,gdooper/scipy,aarchiba/scipy,zerothi/scipy,andyfaff/scipy,andim/scipy,minhlongdo/scipy,jjhelmus/scipy,pbrod/scipy,pbrod/scipy,e-q/scipy,scipy/scipy,perimosocordiae/scipy,Gillu13/scipy,pbrod/scipy,gertingold/scipy,andyfaff/scipy,josephcslater/scipy,gertingold/scipy,Eric89GXL/scipy,befelix/scipy,gdooper/scipy,Shaswat27/scipy,futurulus/scipy,sriki18/scipy,bkendzior/scipy,Shaswat27/scipy,ilayn/scipy,mikebenfield/scipy,andim/scipy,perimosocordiae/scipy,endolith/scipy,maniteja123/scipy,futurulus/scipy,larsmans/scipy,Newman101/scipy,arokem/scipy,WarrenWeckesser/scipy,matthewalbani/scipy,befelix/scipy,mdhaber/scipy,aarchiba/scipy,fredrikw/scipy,anielsen001/scipy,andyfaff/scipy,Newman101/scipy,matthew-brett/scipy,Stefan-Endres/scipy,argriffing/scipy,arokem/scipy,dominicelse/scipy,bkendzior/scipy,fredrikw/scipy,Eric89GXL/scipy,pyramania/scipy,sriki18/scipy,pizzathief/scipy,apbard/scipy,jamestwebber/scipy,andyfaff/scipy,Newman101/scipy,grlee77/scipy,rgommers/scipy,endolith/scipy,jjhelmus/scipy,gfyoung/scipy,anntzer/scipy,haudren/scipy,surhudm/scipy,gfyoung/scipy,jamestwebber/scipy,kleskjr/scipy,tylerjereddy/scipy,niknow/scipy,jakevdp/scipy,woodscn/scipy,e-q/scipy,gfyoung/scipy,behzadnouri/scipy,jamestwebber/scipy,anntzer/scipy,kleskjr/scipy,bkendzior/scipy,rgommers/scipy,rgommers/scipy,minhlongdo/scipy,apbard/scipy,behzadnouri/scipy,haudren/scipy,jjhelmus/scipy,haudren/scipy,Shaswat27/scipy,Eric89GXL/scipy,apbard/scipy,zerothi/scipy,futurulus/scipy,minhlongdo/scipy,person142/scipy,woodscn/scipy,chatcannon/scipy,chatcannon/scipy,WarrenWeckesser/scipy,maniteja123/scipy,futurulus/scipy,Newman101/scipy,woodscn/scipy,josephcslater/scipy,argriffing/scipy,jakevdp/scipy,lhilt/scipy,maniteja123/scipy,mikebenfield/scipy,jjhelmus/scipy,surhudm/scipy,e-q/scipy,woodscn/scipy,andim/scipy,jor-/scipy,aeklant/scipy,aeklant/scipy,Gillu13/scipy,rgommers/scipy,larsmans/scipy,jor-/scipy,aarchiba/scipy,haudren/scipy,haudren/scipy,vigna/scipy,scipy/scipy,futurulus/scipy,niknow/scipy,pyramania/scipy,scipy/scipy,nmayorov/scipy,mdhaber/scipy,aeklant/scipy,matthew-brett/scipy,maniteja123/scipy,kleskjr/scipy,behzadnouri/scipy,aarchiba/scipy,anielsen001/scipy,anielsen001/scipy,maniteja123/scipy,matthewalbani/scipy,sriki18/scipy,anntzer/scipy,e-q/scipy,nonhermitian/scipy,pizzathief/scipy,chatcannon/scipy,WillieMaddox/scipy,Eric89GXL/scipy,pbrod/scipy,pizzathief/scipy,zerothi/scipy,gdooper/scipy,kleskjr/scipy,person142/scipy,mikebenfield/scipy,arokem/scipy,josephcslater/scipy,perimosocordiae/scipy,perimosocordiae/scipy,surhudm/scipy,matthew-brett/scipy,arokem/scipy,surhudm/scipy,Eric89GXL/scipy,grlee77/scipy,zerothi/scipy,matthew-brett/scipy,gfyoung/scipy,Stefan-Endres/scipy,niknow/scipy,mdhaber/scipy,jamestwebber/scipy,jor-/scipy,bkendzior/scipy,andyfaff/scipy,behzadnouri/scipy,endolith/scipy,pschella/scipy,WarrenWeckesser/scipy,tylerjereddy/scipy,andim/scipy,woodscn/scipy,Stefan-Endres/scipy,nonhermitian/scipy,surhudm/scipy,niknow/scipy,WillieMaddox/scipy,larsmans/scipy,perimosocordiae/scipy,pyramania/scipy,endolith/scipy,Gillu13/scipy,dominicelse/scipy,pschella/scipy,Newman101/scipy,perimosocordiae/scipy,befelix/scipy,pbrod/scipy,jor-/scipy,aeklant/scipy,vigna/scipy,pschella/scipy,fredrikw/scipy,WillieMaddox/scipy,pizzathief/scipy,e-q/scipy,jakevdp/scipy,jakevdp/scipy,WarrenWeckesser/scipy,jakevdp/scipy,grlee77/scipy,ilayn/scipy,bkendzior/scipy,matthewalbani/scipy,larsmans/scipy,Gillu13/scipy,anntzer/scipy,Eric89GXL/scipy,kleskjr/scipy,pbrod/scipy,argriffing/scipy,gdooper/scipy,anielsen001/scipy,mikebenfield/scipy,ilayn/scipy,gertingold/scipy,josephcslater/scipy,matthewalbani/scipy,woodscn/scipy,scipy/scipy,argriffing/scipy,WarrenWeckesser/scipy,argriffing/scipy,ilayn/scipy,minhlongdo/scipy,nmayorov/scipy,befelix/scipy,vigna/scipy,befelix/scipy,mdhaber/scipy,mikebenfield/scipy,sriki18/scipy,Gillu13/scipy,gdooper/scipy,scipy/scipy,person142/scipy,dominicelse/scipy,Newman101/scipy,jamestwebber/scipy,niknow/scipy,Shaswat27/scipy,tylerjereddy/scipy,gertingold/scipy,grlee77/scipy,scipy/scipy,tylerjereddy/scipy,WillieMaddox/scipy,chatcannon/scipy,grlee77/scipy,WillieMaddox/scipy,gertingold/scipy,kleskjr/scipy,andim/scipy,person142/scipy,mdhaber/scipy,kalvdans/scipy,lhilt/scipy,nonhermitian/scipy,apbard/scipy,maniteja123/scipy,pyramania/scipy,ilayn/scipy,chatcannon/scipy,vigna/scipy,arokem/scipy,WillieMaddox/scipy,Stefan-Endres/scipy,fredrikw/scipy,pyramania/scipy,zerothi/scipy,jjhelmus/scipy,fredrikw/scipy,aarchiba/scipy,aeklant/scipy,anielsen001/scipy,gfyoung/scipy,nmayorov/scipy,nmayorov/scipy,Gillu13/scipy,nonhermitian/scipy,niknow/scipy,anntzer/scipy,dominicelse/scipy