Go to the documentation of this file.
57 template<
typename A,
typename B>
struct dummy_op;
93 VERIFY((
is_same<
typename gen_numeric_list<int, 10>::type,
numeric_list<int, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9>>::
value));
99 VERIFY((
is_same<
typename gen_numeric_list<int, 10, 42>::type,
numeric_list<int, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51>>::
value));
105 VERIFY((
is_same<
typename gen_numeric_list_reversed<int, 10>::type,
numeric_list<int, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0>>::
value));
111 VERIFY((
is_same<
typename gen_numeric_list_reversed<int, 10, 42>::type,
numeric_list<int, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42>>::
value));
117 VERIFY((
is_same<
typename gen_numeric_list_swapped_pair<int, 10, 2, 3>::type,
numeric_list<int, 0, 1, 3, 2, 4, 5, 6, 7, 8, 9>>::
value));
122 VERIFY((
is_same<
typename gen_numeric_list_swapped_pair<int, 5, 44, 45, 42>::type,
numeric_list<int, 42, 43, 45, 44, 46>>::
value));
123 VERIFY((
is_same<
typename gen_numeric_list_swapped_pair<int, 10, 44, 45, 42>::type,
numeric_list<int, 42, 43, 45, 44, 46, 47, 48, 49, 50, 51>>::
value));
129 VERIFY((
is_same<
typename gen_numeric_list_repeated<int, 10, 0>::type,
numeric_list<int, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>>::
value));
142 VERIFY((
is_same<
typename concat<
numeric_list<int, 0, 0>,
numeric_list<int, 0, 0>>::
type,
numeric_list<int, 0, 0, 0, 0>>::
value));
143 VERIFY((
is_same<
typename concat<
numeric_list<int, 0, 0>,
numeric_list<int, 1, 2>>::
type,
numeric_list<int, 0, 0, 1, 2>>::
value));
235 template<
typename... tt>
245 test_id_numeric<1, 4, 6>();
246 test_id_type<dummy_a, dummy_b, dummy_c>();
319 VERIFY((array_zip<product_op>(
a,
b) ==
d));
320 VERIFY((array_apply<times2_op>(
b) ==
e));
332 VERIFY((repeat<6, int>(2) == a6));
334 int data[5] = { 0, 1, 2, 3, 4 };
constexpr EIGEN_STRONG_INLINE array< T, N > array_reverse(array< T, N > arr)
constexpr EIGEN_DEVICE_FUNCdecltype(reduce< product_op, Ts... >::run((*((Ts *) 0))...)) EIGEN_STRONG_INLIN arg_prod)(Ts... ts)
constexpr EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE auto array_sum(const array< T, N > &arr) -> decltype(array_reduce< sum_op, T, N >(arr, static_cast< T >(0)))
InstType instantiate_by_c_array(ArrType *arr)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
constexpr EIGEN_STRONG_INLINE auto array_zip_and_reduce(array< A, N > a, array< B, N > b) -> decltype(h_array_zip_and_reduce< Reducer, Op, A, B, N >(a, b, typename gen_numeric_list< int, N >::type()))
constexpr decltype(reduce< sum_op, Ts... >::run((*((Ts *) 0))...)) EIGEN_STRONG_INLIN arg_sum)(Ts... ts)
#define VERIFY_IS_EQUAL(a, b)
constexpr EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE auto array_reduce(const array< T, N > &arr, T identity) -> decltype(h_array_reduce< Reducer, T, N >::run(arr, identity))
constexpr EIGEN_STRONG_INLINE auto array_apply_and_reduce(array< A, N > a) -> decltype(h_array_apply_and_reduce< Reducer, Op, A, N >(a, typename gen_numeric_list< int, N >::type()))
dummy_inst(int, int, int, int, int)
constexpr static bool value
constexpr array< t, n > repeat(t v)
constexpr descr< 0 > concat()
constexpr EIGEN_STRONG_INLINE array< decltype(Op::run(A())), N > array_apply(array< A, N > a)
constexpr EIGEN_STRONG_INLINE array< decltype(Op::run(A(), B())), N > array_zip(array< A, N > a, array< B, N > b)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes< Indices... > &)
#define VERIFY_IS_APPROX(a, b)
dummy_inst(int, int, int)
Array< int, Dynamic, 1 > v
constexpr static int global_flags
Container::iterator get(Container &c, Position position)
#define CALL_SUBTEST(FUNC)
dummy_inst(int, int, int, int)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:07