Follow-up: I have tagged the numpy-broadcasting questions without the numpy tag, created the new array-broadcasting tag with a simple and broad excerpt, and asked the mods to synonymize the former into the latter, which they have. As of now we only have array-broadcasting.
Appropriate edits for the tag wiki are welcome! I'm only familiar with broadcasting in MATLAB/Octave and Python's NumPy, which work more or less the same (dimensions of size 1, including implicit trailing or leading dimensions, can be expanded to larger size to match arrays in certain operations). I have heard that broadcasting in R includes arbitrary repetition of arrays, e.g. broadcasting length 3 to length 5. I suspect Julia is somewhere on this axis.
It would also be nice to explain in a few words the difference between vectorization and broadcasting, as the two often get confused. I don't feel like I have a notion well-defined enough to write the wiki myself, that's why I've only added a short excerpt.
Original answer continues below for posterity.
I agree. A few weeks ago I wanted to tag a MATLAB question with broadcasting, only to realize the same thing. It didn't seem off enough to me to consider a retag, but now that you mention it this is very much straightforward.
Firstly, all of the [numpy-broadcasting] questions should be tagged with [numpy] whether or not the tag gets renamed. But of course the usual caveats apply: we should not flood the front page with old posts, crap should be closed rather than edited, and good posts should be given more than just a retag to fix any possible issues with them while we're at it.
Secondly, numpy users should not be affected by the proposed change, since [numpy]+[array-broadcasting] should be as good as [numpy]+[numpy-broadcasting]. And non-numpy users should only benefit from having the more general tag. Unless some objections are raised soon I have enough score in the tag to suggest a new synonym, which we can create to cover the other languages as well.
With no apparent objections I think we can slowly start fixing the few questions not tagged with numpy but tagged with numpy-broadcasting. Some possible scenarios:
- the question is not answerable or should not be kept around for another reason: don't edit, vote to close and later vote to delete. Example.
- the question is not really about numpy broadcasting, maybe not even numpy, just vectorization: change numpy-broadcasting to vectorization. Example.
- the question is about numpy and numpy broadcasting: add numpy. Example.
And of course if anything else is missing (for instance a generic python tag) we should add that too while we're at it. Linking back to this retag request in the edit summary might help explain why some of these questions are suddenly getting edited.
[numpy-broadcasting] -[numpy] -[pandas]
: stackoverflow.com/questions/tagged/…