Closed masterleinad closed 4 years ago
DTK clang-format check failed
--- a/packages/Meshfree/src/DTK_DetailsSVDImpl.hpp
+++ b/packages/Meshfree/src/DTK_DetailsSVDImpl.hpp
@@ -29,9 +29,9 @@
* @param x is zero, and -1 if @param x is less than zero.
*/
template <typename T, typename = std::enable_if_t<std::is_arithmetic<T>::value>>
-KOKKOS_INLINE_FUNCTION int sgn(T x)
+KOKKOS_INLINE_FUNCTION int sgn( T x )
{
- return (x > 0) - (x < 0);
+ return ( x > 0 ) - ( x < 0 );
}
// The original version of this functor was taken from Trilinos mini-tensor
DTK clang-format check failed
Fixed.
https://github.com/arborx/ArborX/pull/350 removed KokkosExt::sgn from
ArborX
but we use it in DTK. Hence, just define it close to where we need it inside aDetail
namespace.