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);
11
Matrix<float, 3, 2>
A_T = A.
transpose
();
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::Matrix::transpose
Matrix< Type, N, M > transpose() const
Definition:
Matrix.hpp:353
matrix
Definition:
AxisAngle.hpp:11
main
int main()
Definition:
transpose.cpp:7
math.hpp
matrix::isEqual
bool isEqual(const Matrix< Type, M, N > &x, const Matrix< Type, M, N > &y, const Type eps=1e-4f)
Definition:
Matrix.hpp:571
data
uint8_t * data
Definition:
dataman.cpp:149
test_macros.hpp
TEST
#define TEST(X)
Definition:
test_macros.hpp:14
matrix::Matrix
Definition:
Matrix.hpp:36
src
lib
matrix
test
transpose.cpp
Generated by
1.8.13