runPosIC, initializeGlobally
This commit is contained in:
@@ -7,8 +7,15 @@ namespace MbD {
|
||||
class SparseMatrix : public RowTypeMatrix<std::shared_ptr<SparseRow<T>>>
|
||||
{
|
||||
public:
|
||||
SparseMatrix(int m, int n) {
|
||||
for (size_t i = 0; i < m; i++)
|
||||
{
|
||||
auto row = std::make_shared<SparseRow<T>>(n);
|
||||
this->push_back(row);
|
||||
}
|
||||
}
|
||||
SparseMatrix(std::initializer_list<std::initializer_list<std::initializer_list<double>>> list2D) {
|
||||
for (auto rowList : list2D)
|
||||
for (auto& rowList : list2D)
|
||||
{
|
||||
auto row = std::make_shared<SparseRow<T>>(rowList);
|
||||
this->push_back(row);
|
||||
|
||||
Reference in New Issue
Block a user