RMatrix
Actually I do not open recent version of RMatrix anymore due to some reasons.
However if you want an old version of RMatrix, refer to the files below.
Hope it can help you.
rmatrix.h
rmatrix.cpp
linalg.cpp
optim.h
constr.cpp
tutorial.cpp