Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

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

Document Table of Contents

?cabs1

Computes absolute value of complex number.

Syntax

res = scabs1(z)

res = dcabs1(z)

res = cabs1(z)

Include Files
  • mkl.fi, blas.f90
Description

The ?cabs1 is an auxiliary routine for a few BLAS Level 1 routines. This routine performs an operation defined as

res=|Re(z)|+|Im(z)|,

where z is a scalar, and res is a value containing the absolute value of a complex number z.

Input Parameters
z

COMPLEX scalar for scabs1.

DOUBLE COMPLEX scalar for dcabs1.

Output Parameters
res

REAL for scabs1.

DOUBLE PRECISION for dcabs1.

Contains the absolute value of a complex number z.