Not in C++, it can't. I mean maybe the LU decomposition in ten lines of code, given the matrix operators, which would have to be written. In MATLAB, ten lines seems pretty reasonable.