TST: Add parametrization and make matrix permutations more efficient
TST: Add parametrization and make matrix permutations more efficient

removed if-else clauses, unneeded code, and corrected L U matrix permutation issues to work with all dtypes.

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