/* * Filename: Matrix.h * * Description: * * * Version: * Created: Sun Mar 8 08:11:11 2020 * Revision: None * Author: Rachel Fae Fox (foxiepaws),fox@foxiepa.ws * */ #pragma once #include namespace amalgam { namespace FM { template class Matrix { public: std::array, N> v; // gain std::array *operator[] (int row){ return &v[row]; } T *operator()(int row, int col) { return &v[row][col]; } }; } } /* Local Variables: */ /* mode: c++ */ /* End: */ /* vim: ft=cpp: */