MRPT
1.9.9
|
#include <gtest/gtest.h>
#include <mrpt/io/CMemoryStream.h>
#include <mrpt/math/CMatrixD.h>
#include <mrpt/math/CMatrixFixed.h>
#include <mrpt/math/matrix_serialization.h>
#include <mrpt/random.h>
#include <mrpt/serialization/CArchive.h>
#include <Eigen/Dense>
Go to the source code of this file.
Macros | |
#define | CHECK_AND_RET_ERROR(_COND_, _MSG_) EXPECT_FALSE(_COND_) << _MSG_; |
Functions | |
TEST (Matrices, DynMat_size) | |
TEST (Matrices, A_times_B_dyn) | |
TEST (Matrices, A_times_B_fix) | |
TEST (Matrices, SerializeCMatrixD) | |
TEST (Matrices, EigenVal2x2dyn) | |
TEST (Matrices, eig_symmetric) | |
TEST (Matrices, EigenVal3x3dyn) | |
TEST (Matrices, EigenVal2x2fix) | |
TEST (Matrices, EigenVal3x3fix) | |
Variables | |
const double | dat_A [] = {4, 5, 8, -2, 1, 3} |
const double | dat_B [] = {2, 6, 9, 8} |
const double | dat_Cok [] = {53, 64, -2, 32, 29, 30} |
#define CHECK_AND_RET_ERROR | ( | _COND_, | |
_MSG_ | |||
) | EXPECT_FALSE(_COND_) << _MSG_; |
Definition at line 32 of file matrix_ops1_unittest.cpp.
TEST | ( | Matrices | , |
DynMat_size | |||
) |
Definition at line 34 of file matrix_ops1_unittest.cpp.
References dat_A, and EXPECT_EQ().
TEST | ( | Matrices | , |
A_times_B_dyn | |||
) |
Definition at line 42 of file matrix_ops1_unittest.cpp.
References dat_A, dat_B, dat_Cok, EXPECT_NEAR(), and mrpt::math::MatrixVectorBase< Scalar, Derived >::sum().
TEST | ( | Matrices | , |
A_times_B_fix | |||
) |
Definition at line 54 of file matrix_ops1_unittest.cpp.
References mrpt::math::CMatrixFixed< T, ROWS, COLS >::asEigen(), dat_A, dat_B, dat_Cok, and EXPECT_NEAR().
TEST | ( | Matrices | , |
SerializeCMatrixD | |||
) |
Definition at line 67 of file matrix_ops1_unittest.cpp.
References mrpt::serialization::archiveFrom(), dat_A, EXPECT_NEAR(), mrpt::io::CMemoryStream::Seek(), and mrpt::math::sum().
TEST | ( | Matrices | , |
EigenVal2x2dyn | |||
) |
Definition at line 97 of file matrix_ops1_unittest.cpp.
References mrpt::math::CMatrixDynamic< T >::asEigen(), mrpt::math::MatrixBase< Scalar, Derived >::eig(), EXPECT_NEAR(), mrpt::math::MatrixBase< Scalar, Derived >::setDiagonal(), and mrpt::math::MatrixVectorBase< Scalar, Derived >::transpose().
TEST | ( | Matrices | , |
eig_symmetric | |||
) |
Definition at line 114 of file matrix_ops1_unittest.cpp.
References mrpt::math::MatrixBase< Scalar, Derived >::eig_symmetric(), EXPECT_EQ(), and EXPECT_NEAR().
TEST | ( | Matrices | , |
EigenVal3x3dyn | |||
) |
Definition at line 131 of file matrix_ops1_unittest.cpp.
References mrpt::math::CMatrixDynamic< T >::asEigen(), mrpt::math::MatrixBase< Scalar, Derived >::eig(), EXPECT_NEAR(), mrpt::math::MatrixBase< Scalar, Derived >::setDiagonal(), and mrpt::math::MatrixVectorBase< Scalar, Derived >::transpose().
TEST | ( | Matrices | , |
EigenVal2x2fix | |||
) |
Definition at line 148 of file matrix_ops1_unittest.cpp.
References mrpt::math::CMatrixFixed< T, ROWS, COLS >::asEigen(), mrpt::math::MatrixBase< Scalar, Derived >::eig(), EXPECT_NEAR(), mrpt::math::MatrixBase< Scalar, Derived >::setDiagonal(), and mrpt::math::MatrixVectorBase< Scalar, Derived >::transpose().
TEST | ( | Matrices | , |
EigenVal3x3fix | |||
) |
Definition at line 165 of file matrix_ops1_unittest.cpp.
References mrpt::math::CMatrixFixed< T, ROWS, COLS >::asEigen(), mrpt::math::MatrixBase< Scalar, Derived >::eig(), EXPECT_NEAR(), mrpt::math::MatrixBase< Scalar, Derived >::setDiagonal(), and mrpt::math::MatrixVectorBase< Scalar, Derived >::transpose().
const double dat_A[] = {4, 5, 8, -2, 1, 3} |
Definition at line 28 of file matrix_ops1_unittest.cpp.
Referenced by TEST().
const double dat_B[] = {2, 6, 9, 8} |
Definition at line 29 of file matrix_ops1_unittest.cpp.
Referenced by TEST().
const double dat_Cok[] = {53, 64, -2, 32, 29, 30} |
Definition at line 30 of file matrix_ops1_unittest.cpp.
Referenced by TEST().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |