Files
solver/MbDCode/RowTypeMatrix.h
2023-04-29 11:19:31 -06:00

22 lines
447 B
C++

#pragma once
#include "Array.h"
namespace MbD {
template <typename T>
class RowTypeMatrix : public Array<T>
{
public:
RowTypeMatrix() {}
RowTypeMatrix(std::initializer_list<T> list) : Array<T>{ list } {}
void copy(std::shared_ptr<RowTypeMatrix<T>> x);
};
template<typename T>
inline void RowTypeMatrix<T>::copy(std::shared_ptr<RowTypeMatrix<T>> x)
{
for (int i = 0; i < x->size(); i++) {
this->at(i)->copy(x->at(i));
}
}
}