#ifndef MATRIX_H #define MATRIX_H #include <vector> #include <string> // std::string template<typename T> class Matrix { public: // protected: TODO: Fix me std::vector<std::string> row_names; std::vector<std::string> col_names; std::vector<std::vector<T> > data; Matrix(std::size_t reserved_count) { row_names.reserve(reserved_count); col_names.reserve(reserved_count); data.reserve(reserved_count); } public: const std::vector<std::vector<T> >& get_data() const { return data; } const std::vector<std::string>& get_row_names() const { return row_names; } const std::vector<std::string>& get_col_names() const { return col_names; } }; #endif