first good build. Part, PartFrame, Matrix

This commit is contained in:
Aik-Siong Koh
2023-05-02 10:22:37 -06:00
parent 5c4b08606d
commit 697aad4db9
39 changed files with 453 additions and 99 deletions

18
MbDCode/SparseRow.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <memory>
#include <cmath>
#include "SparseVector.h"
namespace MbD {
template <typename T>
class SparseRow : public SparseVector<T>
{
public:
SparseRow() {}
SparseRow(std::initializer_list<std::pair<const int, T>> list) : SparseVector<T>{ list } {}
SparseRow(std::initializer_list<std::initializer_list<T>> list) : SparseVector<T>{ list } {}
};
}
typedef std::shared_ptr<MbD::SparseRow<double>> SpRowDptr;