Browse Source

test_matrix: remove duplicate namespace accesses

sbg
Matthias Grob 5 years ago committed by Daniel Agar
parent
commit
1ecbf8efd2
  1. 11
      src/systemcmds/tests/test_matrix.cpp

11
src/systemcmds/tests/test_matrix.cpp

@ -96,11 +96,6 @@ bool MatrixTest::run_tests() @@ -96,11 +96,6 @@ bool MatrixTest::run_tests()
ut_declare_test_c(test_matrix, MatrixTest)
using matrix::Dcmf;
using matrix::Quatf;
using matrix::Eulerf;
using matrix::Vector3f;
using std::fabs;
bool MatrixTest::attitudeTests()
@ -392,8 +387,6 @@ bool MatrixTest::integrationTests() @@ -392,8 +387,6 @@ bool MatrixTest::integrationTests()
return true;
}
template class matrix::SquareMatrix<float, 3>;
bool MatrixTest::inverseTests()
{
float data[9] = {0, 2, 3,
@ -739,7 +732,7 @@ bool MatrixTest::dcmRenormTests() @@ -739,7 +732,7 @@ bool MatrixTest::dcmRenormTests()
if (verbose) {
for (int row = 0; row < 3; row++) {
matrix::Vector3f rvec(matrix::Matrix<float, 1, 3>(A.row(row)).transpose());
Vector3f rvec(Matrix<float, 1, 3>(A.row(row)).transpose());
err += fabsf(1.0f - rvec.length());
}
@ -751,7 +744,7 @@ bool MatrixTest::dcmRenormTests() @@ -751,7 +744,7 @@ bool MatrixTest::dcmRenormTests()
err = 0.0f;
for (int row = 0; row < 3; row++) {
matrix::Vector3f rvec(matrix::Matrix<float, 1, 3>(A.row(row)).transpose());
Vector3f rvec(Matrix<float, 1, 3>(A.row(row)).transpose());
err += fabsf(1.0f - rvec.length());
}

Loading…
Cancel
Save