Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

?lapy3

Returns sqrt(x2+y2+z2).

Syntax

float LAPACKE_slapy3 (floatx, floaty, floatz);

double LAPACKE_dlapy3 (double x, doubley, doublez);

Include Files

  • mkl.h

Description

The function ?lapy3 returns sqrt(x2+y2+z2), 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, z

Specify the input values x, y and z.

Return Values

This function returns a value val.

If val = -1D0, the first argument was NaN.

If val = -2D0, the second argument was NaN.

If val = -3D0, the third argument was NaN.