MATLAB arrays support matrix operations and element operations. For example,
Note however that custom operators are not supported by C++ per se, the example above uses tricks with macros to achieve the effect. I wouldn't do it if I were you, and use functions instead. Without tricks - custom operators are not supported in C++.