PETSc version 3.17.5
VecSqrtAbs
Replaces each component of a vector by the square root of its magnitude.
Synopsis
#include "petscvec.h"
PetscErrorCode VecSqrtAbs(Vec v)
Not collective
Input Parameter
Output Parameter
| v | - The vector square root
|
Note: The actual function is sqrt(|x_i|)
See Also
VecLog(), VecExp(), VecReciprocal(), VecAbs()
Level
beginner
Location
src/vec/vec/utils/vinv.c
Examples
src/tao/constrained/tutorials/tomographyADMM.c.html
src/tao/tutorials/ex4.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages