We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 456e6eb commit b32f5c7Copy full SHA for b32f5c7
test/ein_reduce.cpp
@@ -145,7 +145,8 @@ TEST(ein_reduce_dot_offset) {
145
constexpr int sgn(index_t i) { return i == 0 ? 0 : (i < 0 ? -1 : 1); }
146
147
// Defines the arbitrary rank Levi-Civita tensor as a constexpr function.
148
-constexpr int epsilon() { return 1.0f; }
+constexpr int epsilon() { return 1; }
149
+constexpr int epsilon(index_t i0) { return 1; }
150
template <class... Ts>
151
constexpr int epsilon(index_t i0, Ts... is) {
152
return internal::product(sgn(is - i0)...) * epsilon(is...);
0 commit comments