Skip to main content
Ctrl+K
PETSc v3.24.5-686-g2b3a95b64d2c documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • VecSignMode

VecSignMode#

How VecPointwiseSign() should handle zero value

Synopsis#

typedef enum {
  VEC_SIGN_ZERO_TO_ZERO,
  VEC_SIGN_ZERO_TO_SIGNED_ZERO,
  VEC_SIGN_ZERO_TO_SIGNED_UNIT,
} VecSignMode;

Values#

  • VEC_SIGN_ZERO_TO_ZERO - -0.0 and 0.0 map to 0.0

  • VEC_SIGN_ZERO_TO_SIGNED_ZERO - -0.0 maps to -0.0 and 0.0 maps to 0.0

  • VEC_SIGN_ZERO_TO_SIGNED_UNIT - -0.0 maps to -1.0 and 0.0 maps to 1.0

See Also#

Vectors and Parallel Data, VecPointwiseSign()

Level#

advanced

Location#

include/petscvec.h


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

On this page
  • Synopsis
  • Values
  • See Also
  • Level
  • Location
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-03-27T03:46:44-0500 (v3.24.5-686-g2b3a95b64d2c).