Use X-macros to generate all combinations of supported Eigen Matrix types Co-authored-by: Joel Falcou <joel.falcou@lri.fr> See merge request oss/rotgen!8
20 lines
No EOL
660 B
C++
20 lines
No EOL
660 B
C++
//==================================================================================================
|
|
/*
|
|
ROTGEN - Runtime Overlay for Eigen
|
|
Copyright : CODE RECKONS
|
|
SPDX-License-Identifier: BSL-1.0
|
|
*/
|
|
//==================================================================================================
|
|
#include "unit/tests.hpp"
|
|
#include <rotgen/matrix.hpp>
|
|
#include <sstream>
|
|
|
|
TTS_CASE_TPL("Sample test", rotgen::tests::types)
|
|
<typename T, typename O>( tts::type< tts::types<T,O>> )
|
|
{
|
|
rotgen::matrix<T,rotgen::Dynamic,rotgen::Dynamic,O::value> x({ {1,2} , {3,4} });
|
|
std::ostringstream os;
|
|
os << x;
|
|
|
|
TTS_EQUAL(os.str(), std::string{"1 2\n3 4"});
|
|
}; |