37 lines
No EOL
1.6 KiB
C++
37 lines
No EOL
1.6 KiB
C++
//==================================================================================================
|
|
/*
|
|
ROTGEN - Runtime Overlay for Eigen
|
|
Copyright : CODE RECKONS
|
|
SPDX-License-Identifier: BSL-1.0
|
|
*/
|
|
//==================================================================================================
|
|
#pragma once
|
|
|
|
#define ROTGEN_DEF_RELOP_PAIR(OP, T1, T2) \
|
|
ROTGEN_EXPORT bool operator OP (T1 const&, T2 const&); \
|
|
inline bool operator OP (T2 const& a, T1 const& b) { return b OP a; } \
|
|
/**/
|
|
|
|
#define ROTGEN_DEF_RELOP(OP) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl32_col, map_impl32_col) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl32_col, map_impl32_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl32_col, map_const_impl32_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl32_row, map_impl32_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl32_row, map_impl32_col) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_impl32_col, map_impl32_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl64_col, map_impl64_col) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl64_col, map_impl64_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl64_col, map_const_impl64_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl64_row, map_impl64_row) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_const_impl64_row, map_impl64_col) \
|
|
ROTGEN_DEF_RELOP_PAIR(OP, map_impl64_col, map_impl64_row) \
|
|
/**/
|
|
|
|
namespace rotgen
|
|
{
|
|
ROTGEN_DEF_RELOP(==)
|
|
ROTGEN_DEF_RELOP(!=)
|
|
}
|
|
|
|
#undef ROTGEN_DEF_RELOP_PAIR
|
|
#undef ROTGEN_DEF_RELOP |