Remove unneeded asanyarray() and catch error if input shape is not 2d and square.  Fixes #366.
Remove unneeded asanyarray() and catch error if input shape is not
2d and square.  Fixes #366.


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