A C++ port of Python Mathworks