Is there a clever way of determining if one matrix is contained within another larger matrix? Iterating over the larger matrix to check each item until potential matches show up is straightforward but gets slow for large matrices.
Example, a smaller matrix:
which is "within" (I'm probably not using the right terminology) this larger matrix:
It feels like a problem that could have a smart mathematics trick for determining if this is the case - is there one?