library for cpp-matrix.