Loosen check for sparse outer indexing fast path
Loosen check for sparse outer indexing fast path

This now accepts row-vector 2d arrays in addition to 1d arrays.

Fixes gh-11255

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