Skip to content

Commit 9052db8

Browse files
authored
Merge pull request #3093 from stan-dev/hypot-header
2 parents 49b92b2 + 79dd4a2 commit 9052db8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/prim/fun/fabs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inline auto fabs(T x) {
1717

1818
template <typename T, require_complex_t<T>* = nullptr>
1919
inline auto fabs(T x) {
20-
return hypot(x.real(), x.imag());
20+
return std::hypot(x.real(), x.imag());
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)