MAINT: spatial.distance: further refactoring
MAINT: spatial.distance: further refactoring

* static on all functions in distance_impl.h
* commented out unused compute_mean_vector
* replaced &&, || with &, | in tight loops
* reindented code according to NumPy conventions
* removed some useless variables

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