1#ifndef HAS_UNARY_MINUS_H
2#define HAS_UNARY_MINUS_H
16template <
typename T,
typename A =
void>
17class has_unary_minus {
19 static constexpr bool value =
false;
24 T, typename
std::enable_if_t<!std::is_unsigned<hila::arithmetic_type<T>>::value &&
25 hila::is_assignable<T &, decltype(-std::declval<T>())>::value>> {
27 static constexpr bool value =
true;
Invert diagonal + const. matrix using Sherman-Morrison formula.