VecPow#
Replaces each component of a vector by x_i^p
Synopsis#
#include "petscvec.h"
PetscErrorCode VecPow(Vec v, PetscScalar p)
Logically Collective
Input Parameters#
v - the vector
p - the exponent to use on each element
See Also#
Level#
intermediate
Location#
Examples#
src/tao/constrained/tutorials/tomographyADMM.c
src/tao/tutorials/ex4.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages