matrix A template of Matrix with C++. The realization of multiple operation is not recommended, and also include: Matrix<T>* getRowVectors(int begin, int end) Matrix<T>* getColVectors(int begin, int end) so, you had better not use them.