VecSqrt

Replaces each component of a vector by the square root of its magnitude.

Synopsis

#include "petscvec.h" 
int VecSqrt(Vec v)
Not collective

Input Parameter

v -The vector

Output Parameter

v -The vector square root

Note: The actual function is sqrt(|x_i|)

Keywords

vector, sqrt, square root

Level:beginner
Location:
src/vec/utils/vinv.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages