Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 3/31/2023
Public

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

Document Table of Contents

cblas_?cabs1

Computes absolute value of complex number.

Syntax

float cblas_scabs1 (const void *z);

double cblas_dcabs1 (const void *z);

Include Files
  • mkl.h
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

Scalar.

Return Values

The absolute value of a complex number z.