Got coverage working for templates.

This commit is contained in:
jgoppert
2015-11-04 12:11:32 -05:00
parent bf6de4b710
commit 18f80462b7
13 changed files with 243 additions and 201 deletions
+5 -2
View File
@@ -4,12 +4,15 @@
using namespace matrix;
template class Matrix<float, 2, 3>;
template class Matrix<float, 3, 2>;
int main()
{
float data[9] = {1, 2, 3, 4, 5, 6};
float data[6] = {1, 2, 3, 4, 5, 6};
Matrix<float, 2, 3> A(data);
Matrix<float, 3, 2> A_T = A.transpose();
float data_check[9] = {1, 4, 2, 5, 3, 6};
float data_check[6] = {1, 4, 2, 5, 3, 6};
Matrix<float, 3, 2> A_T_check(data_check);
A_T.print();
A_T_check.print();