MCPcopy Create free account
hub / github.com/creatale/node-dv / hypot

Function hypot

deps/opencv/modules/core/src/lapack.cpp:214–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214template<typename _Tp> static inline _Tp hypot(_Tp a, _Tp b)
215{
216 a = std::abs(a);
217 b = std::abs(b);
218 if( a > b )
219 {
220 b /= a;
221 return a*std::sqrt(1 + b*b);
222 }
223 if( b > 0 )
224 {
225 a /= b;
226 return b*std::sqrt(1 + a*a);
227 }
228 return 0;
229}
230
231
232template<typename _Tp> bool

Callers 2

JacobiImpl_Function · 0.85
JacobiSVDImpl_Function · 0.85

Calls 2

sqrtFunction · 0.85
absFunction · 0.70

Tested by

no test coverage detected