Skip to content

Commit

Permalink
Merge pull request #3093 from stan-dev/hypot-header
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian authored Jul 15, 2024
2 parents 49b92b2 + 79dd4a2 commit 9052db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stan/math/prim/fun/fabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inline auto fabs(T x) {

template <typename T, require_complex_t<T>* = nullptr>
inline auto fabs(T x) {
return hypot(x.real(), x.imag());
return std::hypot(x.real(), x.imag());
}

/**
Expand Down

0 comments on commit 9052db8

Please sign in to comment.