Skip to main content
Ctrl+K
SLEPc Home SLEPc Home
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • SlepcAbs

SlepcAbs#

Returns sqrt(x2+y2), taking care not to cause unnecessary overflow. It is based on LAPACK’s DLAPY2.

Synopsis#

static inline PetscReal SlepcAbs(PetscReal x,PetscReal y)

Not Collective

Input parameters#

  • x,y - the real numbers

Output parameter#

  • return - the result

Note#

This function is not available from Fortran.

Level#

developer

Location#

include/slepcmath.h


Index of all Sys routines Table of Contents for all manual pages Index of all manual pages

On this page
  • Synopsis
  • Input parameters
  • Output parameter
  • Note
  • Level
  • Location
Edit on GitLab

This Page

  • Show Source

© Copyright 2002-2025, Universitat Politecnica de Valencia, Spain.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.16.1.