#pragma once #include "RowTypeMatrix.h" #include "SparseRow.h" namespace MbD { template class SparseMatrix : public RowTypeMatrix>> { public: SparseMatrix(std::initializer_list>> list2D) { for (auto rowList : list2D) { auto row = std::make_shared>(rowList); this->push_back(row); } } }; typedef std::shared_ptr> SpMatDptr; typedef std::initializer_list>> ListListPairD; }