PX4 Firmware
PX4 Autopilot Software http://px4.io
transpose.cpp
Go to the documentation of this file.
1 #include "test_macros.hpp"
2 
3 #include <matrix/math.hpp>
4 
5 using namespace matrix;
6 
7 int main()
8 {
9  float data[6] = {1, 2, 3, 4, 5, 6};
10  Matrix<float, 2, 3> A(data);
12  float data_check[6] = {1, 4, 2, 5, 3, 6};
13  Matrix<float, 3, 2> A_T_check(data_check);
14  TEST(isEqual(A_T, A_T_check));
15 
16  return 0;
17 }
18 
19 /* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
Matrix< Type, N, M > transpose() const
Definition: Matrix.hpp:353
int main()
Definition: transpose.cpp:7
bool isEqual(const Matrix< Type, M, N > &x, const Matrix< Type, M, N > &y, const Type eps=1e-4f)
Definition: Matrix.hpp:571
uint8_t * data
Definition: dataman.cpp:149
#define TEST(X)
Definition: test_macros.hpp:14