C++ API for all sorts of matrices
