mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
20 lines
413 B
C++
20 lines
413 B
C++
#include "test_macros.hpp"
|
|
|
|
#include <matrix/math.hpp>
|
|
|
|
using namespace matrix;
|
|
|
|
int main()
|
|
{
|
|
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[6] = {1, 4, 2, 5, 3, 6};
|
|
Matrix<float, 3, 2> A_T_check(data_check);
|
|
TEST(isEqual(A_T, A_T_check));
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
|