SlepcAbsEigenvalue

Computes the absolute value of a complex number given its real and imaginary parts.

Synopsis

#include "slepc.h" 
PetscReal SlepcAbsEigenvalue(PetscScalar x,PetscScalar y)
Not collective

Input parameters

x - the real part of the complex number
y - the imaginary part of the complex number

Return value

the absolute value of the number - Notes: This function computes sqrt(x**2+y**2), taking care not to cause unnecessary overflow. It is based on LAPACK's DLAPY2.

Level:developer
Location:
src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages