first good build. Part, PartFrame, Matrix
This commit is contained in:
18
MbDCode/SparseRow.h
Normal file
18
MbDCode/SparseRow.h
Normal 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;
|
||||
Reference in New Issue
Block a user