?cabs1

Computes absolute value of complex number.

Syntax

FORTRAN 77:

res = scabs1(z)

res = dcabs1(z)

Fortran 95:

res = cabs1(z)

Include Files

The FORTRAN 77 interfaces are specified in the mkl_blas.fi include file, the Fortran 95 interfaces are specified in the blas.f90 include file, and the C interfaces are specified in the mkl_blas.h include file.

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.


Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.