Developer Reference for Intel® oneAPI Math Kernel Library for C
?lapy2
Returns sqrt(x^{2}+y^{2}) .
Syntax
floatLAPACKE_slapy2 ( floatx , floaty );
doubleLAPACKE_dlapy2 ( doublex , doubley );
Include Files
mkl.h
Description
slapy2 dlapy2
The function ?lapy2 returns sqrt (x :code:`2` +y :code:`2` ), avoiding unnecessary overflow or harmful underflow.
Input Parameters
A <datatype> placeholder, if present, is used for the C interface data types in the C interface section above. See C Interface Conventions for the C interface principal conventions and type definitions.
- x , y
-
REAL for slapy2 DOUBLE PRECISION for dlapy2 Specify the input values x and y .
Output Parameters
- val
-
REAL for slapy2 DOUBLE PRECISION for dlapy2 . Value returned by the function. If val=-1D0 , the first argument was NaN. If val=-2D0 , the second argument was NaN.
Return Values
The function returns a value val .
If val=-1D0 , the first argument was NaN.
If val=-2D0 , the second argument was NaN.