I have observed that a particular question has been asked, and separately answered, multiple times.
In chronological order:
- Does Mathematica have advanced indexing?
- How can I use Max[] in a function that is passed a list not find the max of the list
- Comparison Operation for Nested Matrices
- List operation list1 >= list2 should compare elements
- Element-wise test on List elements
- Greater operator should give greater element
- Relational operators on vectors
- Maximum brightness of two gray scale images (to a lesser degree)
There are some unique variations among these but there has been a great deal of redundant work in creating these answers. I am seeking a way to make the existing solutions more evident and if possible group them in a single place for easy reference.
The numeric methods in the first Q&A are highly efficient and directly applicable in many of these cases (as C. E. has been posting as answers) but I do not think they are easy to find. Whatever "advanced indexing" is and whether or not Mathematica has it sounds unrelated to many of these, yet many of these questions could be closed as a duplicate of the 2821 if it were written differently. Could we perhaps turn this into the canonical Q&A with a more transparent title and content, without losing the meaning of the original?
In a sort of tangential way How can I make threading more flexible? is also related, and has its own cloud of duplicate and near-duplicate questions. It might be nice to acknowledge one Q&A cluster from within the other.
GreaterEqual
is not the only one.New functions added in version 10.0 or later are usually very slow