BUG: gh-2757, masked array var method should zero masked out parameter.
BUG: gh-2757, masked array var method should zero masked out parameter.

When a is a 1-d masked array with all values masked and b is a 0-d masked
array, then a.var(out=b) fails to set the underlying masked value of b,
causing an invalid value warning to be raised in a.std(out=b) whenever b
contained a masked negative number. This fix sets the underlying value to
0, which is consistent with the n-d case. A better fix might be to add an
out parameter to the masked array ufuncs, but that is a bigger project.

kiwifb/numpy,ahaldane/numpy,jakirkham/numpy,seberg/numpy,Linkid/numpy,skymanaditya1/numpy,behzadnouri/numpy,endolith/numpy,Eric89GXL/numpy,gfyoung/numpy,ViralLeadership/numpy,ViralLeadership/numpy,moreati/numpy,jorisvandenbossche/numpy,cjermain/numpy,andsor/numpy,dch312/numpy,rajathkumarmp/numpy,WarrenWeckesser/numpy,mhvk/numpy,ekalosak/numpy,tdsmith/numpy,solarjoe/numpy,KaelChen/numpy,hainm/numpy,njase/numpy,Srisai85/numpy,brandon-rhodes/numpy,leifdenby/numpy,nguyentu1602/numpy,pyparallel/numpy,ewmoore/numpy,sinhrks/numpy,rajathkumarmp/numpy,groutr/numpy,jorisvandenbossche/numpy,gmcastil/numpy,bmorris3/numpy,NextThought/pypy-numpy,nbeaver/numpy,shoyer/numpy,sonnyhu/numpy,maniteja123/numpy,MichaelAquilina/numpy,rajathkumarmp/numpy,dato-code/numpy,Eric89GXL/numpy,charris/numpy,pbrod/numpy,empeeu/numpy,grlee77/numpy,rgommers/numpy,GaZ3ll3/numpy,tynn/numpy,endolith/numpy,pdebuyl/numpy,bertrand-l/numpy,anntzer/numpy,BabeNovelty/numpy,utke1/numpy,CMartelLML/numpy,ahaldane/numpy,argriffing/numpy,simongibbons/numpy,rherault-insa/numpy,mingwpy/numpy,pbrod/numpy,felipebetancur/numpy,yiakwy/numpy,dwf/numpy,rhythmsosad/numpy,njase/numpy,rhythmsosad/numpy,kiwifb/numpy,musically-ut/numpy,skwbc/numpy,rudimeier/numpy,BabeNovelty/numpy,immerrr/numpy,chiffa/numpy,felipebetancur/numpy,sigma-random/numpy,ChanderG/numpy,pyparallel/numpy,dwf/numpy,musically-ut/numpy,ESSS/numpy,WillieMaddox/numpy,Anwesh43/numpy,githubmlai/numpy,ssanderson/numpy,cjermain/numpy,tdsmith/numpy,ogrisel/numpy,ChristopherHogan/numpy,dwillmer/numpy,mingwpy/numpy,solarjoe/numpy,gmcastil/numpy,sigma-random/numpy,mhvk/numpy,dwf/numpy,behzadnouri/numpy,brandon-rhodes/numpy,mingwpy/numpy,MichaelAquilina/numpy,kirillzhuravlev/numpy,SunghanKim/numpy,andsor/numpy,Dapid/numpy,Srisai85/numpy,skwbc/numpy,behzadnouri/numpy,dimasad/numpy,pdebuyl/numpy,mattip/numpy,shoyer/numpy,larsmans/numpy,hainm/numpy,madphysicist/numpy,gmcastil/numpy,cowlicks/numpy,has2k1/numpy,pizzathief/numpy,simongibbons/numpy,has2k1/numpy,jschueller/numpy,grlee77/numpy,ajdawson/numpy,felipebetancur/numpy,WarrenWeckesser/numpy,rudimeier/numpy,rmcgibbo/numpy,GrimDerp/numpy,musically-ut/numpy,groutr/numpy,mindw/numpy,WillieMaddox/numpy,ajdawson/numpy,rhythmsosad/numpy,abalkin/numpy,ajdawson/numpy,pizzathief/numpy,stuarteberg/numpy,joferkington/numpy,numpy/numpy,SunghanKim/numpy,charris/numpy,stuarteberg/numpy,ViralLeadership/numpy,WarrenWeckesser/numpy,moreati/numpy,jorisvandenbossche/numpy,pbrod/numpy,Linkid/numpy,Srisai85/numpy,immerrr/numpy,dato-code/numpy,rgommers/numpy,MaPePeR/numpy,sonnyhu/numpy,rhythmsosad/numpy,embray/numpy,utke1/numpy,ChristopherHogan/numpy,empeeu/numpy,dch312/numpy,mwiebe/numpy,rherault-insa/numpy,empeeu/numpy,dch312/numpy,ChanderG/numpy,seberg/numpy,mattip/numpy,skymanaditya1/numpy,MSeifert04/numpy,ChanderG/numpy,stuarteberg/numpy,Dapid/numpy,endolith/numpy,ogrisel/numpy,dwf/numpy,mindw/numpy,argriffing/numpy,GrimDerp/numpy,nguyentu1602/numpy,drasmuss/numpy,musically-ut/numpy,WarrenWeckesser/numpy,ContinuumIO/numpy,chatcannon/numpy,numpy/numpy,KaelChen/numpy,jorisvandenbossche/numpy,ewmoore/numpy,joferkington/numpy,joferkington/numpy,ekalosak/numpy,ssanderson/numpy,AustereCuriosity/numpy,jorisvandenbossche/numpy,grlee77/numpy,mindw/numpy,embray/numpy,githubmlai/numpy,bringingheavendown/numpy,ahaldane/numpy,Linkid/numpy,pdebuyl/numpy,CMartelLML/numpy,joferkington/numpy,Yusa95/numpy,leifdenby/numpy,MSeifert04/numpy,trankmichael/numpy,chatcannon/numpy,dwillmer/numpy,mathdd/numpy,chiffa/numpy,MSeifert04/numpy,jankoslavic/numpy,Yusa95/numpy,anntzer/numpy,tdsmith/numpy,ogrisel/numpy,dimasad/numpy,sonnyhu/numpy,MaPePeR/numpy,GrimDerp/numpy,naritta/numpy,Anwesh43/numpy,jankoslavic/numpy,sinhrks/numpy,mattip/numpy,ahaldane/numpy,bringingheavendown/numpy,GrimDerp/numpy,pbrod/numpy,nguyentu1602/numpy,ddasilva/numpy,sinhrks/numpy,ekalosak/numpy,yiakwy/numpy,argriffing/numpy,mortada/numpy,embray/numpy,skymanaditya1/numpy,drasmuss/numpy,CMartelLML/numpy,mingwpy/numpy,pbrod/numpy,ewmoore/numpy,dwillmer/numpy,sigma-random/numpy,abalkin/numpy,jankoslavic/numpy,has2k1/numpy,ekalosak/numpy,BMJHayward/numpy,larsmans/numpy,dwillmer/numpy,tdsmith/numpy,gfyoung/numpy,CMartelLML/numpy,SiccarPoint/numpy,kiwifb/numpy,embray/numpy,ewmoore/numpy,kirillzhuravlev/numpy,andsor/numpy,jakirkham/numpy,dato-code/numpy,ESSS/numpy,rgommers/numpy,tynn/numpy,pizzathief/numpy,mathdd/numpy,naritta/numpy,KaelChen/numpy,brandon-rhodes/numpy,ajdawson/numpy,bmorris3/numpy,seberg/numpy,jschueller/numpy,mathdd/numpy,WillieMaddox/numpy,ChristopherHogan/numpy,sonnyhu/numpy,ChristopherHogan/numpy,ogrisel/numpy,MaPePeR/numpy,andsor/numpy,SiccarPoint/numpy,tacaswell/numpy,tynn/numpy,Eric89GXL/numpy,njase/numpy,Anwesh43/numpy,shoyer/numpy,WarrenWeckesser/numpy,sigma-random/numpy,larsmans/numpy,BabeNovelty/numpy,skwbc/numpy,charris/numpy,bmorris3/numpy,moreati/numpy,MaPePeR/numpy,rmcgibbo/numpy,rgommers/numpy,chatcannon/numpy,drasmuss/numpy,b-carter/numpy,maniteja123/numpy,NextThought/pypy-numpy,kirillzhuravlev/numpy,trankmichael/numpy,naritta/numpy,dch312/numpy,b-carter/numpy,NextThought/pypy-numpy,nbeaver/numpy,has2k1/numpy,cowlicks/numpy,bmorris3/numpy,mhvk/numpy,ewmoore/numpy,Anwesh43/numpy,rmcgibbo/numpy,BabeNovelty/numpy,yiakwy/numpy,SunghanKim/numpy,ahaldane/numpy,anntzer/numpy,hainm/numpy,cjermain/numpy,Dapid/numpy,mwiebe/numpy,BMJHayward/numpy,cowlicks/numpy,MichaelAquilina/numpy,madphysicist/numpy,ContinuumIO/numpy,dato-code/numpy,bertrand-l/numpy,dwf/numpy,GaZ3ll3/numpy,cowlicks/numpy,MichaelAquilina/numpy,ContinuumIO/numpy,solarjoe/numpy,pizzathief/numpy,jonathanunderwood/numpy,dimasad/numpy,yiakwy/numpy,rudimeier/numpy,Srisai85/numpy,ogrisel/numpy,nguyentu1602/numpy,empeeu/numpy,nbeaver/numpy,shoyer/numpy,trankmichael/numpy,naritta/numpy,BMJHayward/numpy,SiccarPoint/numpy,AustereCuriosity/numpy,AustereCuriosity/numpy,grlee77/numpy,jankoslavic/numpy,rmcgibbo/numpy,larsmans/numpy,mathdd/numpy,sinhrks/numpy,SunghanKim/numpy,numpy/numpy,madphysicist/numpy,felipebetancur/numpy,chiffa/numpy,dimasad/numpy,ChanderG/numpy,rajathkumarmp/numpy,Linkid/numpy,BMJHayward/numpy,rherault-insa/numpy,charris/numpy,jakirkham/numpy,numpy/numpy,brandon-rhodes/numpy,ddasilva/numpy,bertrand-l/numpy,rudimeier/numpy,maniteja123/numpy,skymanaditya1/numpy,groutr/numpy,mhvk/numpy,pizzathief/numpy,hainm/numpy,jakirkham/numpy,githubmlai/numpy,trankmichael/numpy,simongibbons/numpy,Yusa95/numpy,KaelChen/numpy,SiccarPoint/numpy,ESSS/numpy,MSeifert04/numpy,immerrr/numpy,pyparallel/numpy,immerrr/numpy,mortada/numpy,grlee77/numpy,jonathanunderwood/numpy,tacaswell/numpy,leifdenby/numpy,mwiebe/numpy,NextThought/pypy-numpy,b-carter/numpy,tacaswell/numpy,stuarteberg/numpy,endolith/numpy,anntzer/numpy,MSeifert04/numpy,jakirkham/numpy,simongibbons/numpy,cjermain/numpy,pdebuyl/numpy,mortada/numpy,GaZ3ll3/numpy,mhvk/numpy,GaZ3ll3/numpy,bringingheavendown/numpy,Yusa95/numpy,mindw/numpy,jschueller/numpy,madphysicist/numpy,shoyer/numpy,abalkin/numpy,embray/numpy,Eric89GXL/numpy,mattip/numpy,ddasilva/numpy,seberg/numpy,ssanderson/numpy,githubmlai/numpy,jonathanunderwood/numpy,simongibbons/numpy,madphysicist/numpy,gfyoung/numpy,kirillzhuravlev/numpy,utke1/numpy,jschueller/numpy,mortada/numpy