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
31 lines
No EOL
1.1 KiB
C++
31 lines
No EOL
1.1 KiB
C++
//==================================================================================================
|
|
/*
|
|
ROTGEN - Runtime Overlay for Eigen
|
|
Copyright : CODE RECKONS
|
|
SPDX-License-Identifier: BSL-1.0
|
|
*/
|
|
//==================================================================================================
|
|
#define TTS_MAIN
|
|
#include "tts.hpp"
|
|
#include <rotgen/detail/static_info.hpp>
|
|
#include <functional>
|
|
|
|
namespace rotgen::tests
|
|
{
|
|
template<auto N> struct constant { static constexpr auto value = N; };
|
|
|
|
using scalar = tts::types<float,double>;
|
|
using order = tts::types<constant<ColMajor>,constant<RowMajor>>;
|
|
|
|
using types = tts::types< tts::types<float ,constant<ColMajor>>
|
|
, tts::types<double,constant<ColMajor>>
|
|
, tts::types<float ,constant<RowMajor>>
|
|
, tts::types<double,constant<RowMajor>>
|
|
>;
|
|
|
|
struct matrix_descriptor
|
|
{
|
|
std::size_t rows, cols;
|
|
std::function<double(std::size_t,std::size_t)> init_fn;
|
|
};
|
|
} |