MCPcopy Create free account
hub / github.com/Derious/cuMPC / array_reverse_extra

Function array_reverse_extra

dependence/eigen-3.4.0/test/array_reverse.cpp:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126template<int>
127void array_reverse_extra()
128{
129 Vector4f x; x << 1, 2, 3, 4;
130 Vector4f y; y << 4, 3, 2, 1;
131 VERIFY(x.reverse()[1] == 3);
132 VERIFY(x.reverse() == y);
133}
134
135// Simpler version of reverseInPlace leveraging a bug
136// in clang 6/7 with -O2 and AVX or AVX512 enabled.

Callers

nothing calls this directly

Calls 1

reverseMethod · 0.45

Tested by

no test coverage detected