Initalising your matrices - Shivix/MatLib GitHub Wiki
Matrix takes 3 template parameters: the Type of data stored, the number of rows, and the number of columns. So for a 4x5 matrix containing doubles you would type:
MatLib::matrix<double, 4, 5> exampleMatrix;
Since Matrix is an aggregate, it can therefore use aggregate initialisation. Example:
MatLib::matrix<float, 4, 5> exampleMatrix = {{{{0 , 1 , 2 , 3 , 4 },
{5 , 6 , 7 , 8 , 9 },
{10, 11, 12, 13, 14},
{15, 16, 17, 18, 19}
}}};
Note: Each pair of '{}' accesses further into the data
Note2: An Alias can be used if MatLib:: is deemed to verbose e.g. namespace ml = MatLib;