mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 15:10:34 +08:00
Got coverage working for templates.
This commit is contained in:
+5
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user