Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

?lapy2

Returns
sqrt(
x
2
+
y
2
)
.

Syntax

val
=
slapy2
(
x
,
y
)
val
=
dlapy2
(
x
,
y
)
Include Files
  • mkl.fi
Description
The function
?lapy2
returns
sqrt
(x
2
+y
2
), avoiding unnecessary overflow or harmful underflow.
Input Parameters
The data types are given for the Fortran interface.
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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804