tao-2.1-p0 2012-07-24

VecPow

Replaces each component of a vector by x_i^p

Synopsis

#include "tao.h" 
#include "tao_util.h" 
PetscErrorCode VecPow(Vec v, PetscReal p)
Logically Collective on v

Input Parameter

v - the vector
p - the exponent to use on each element

Output Parameter

v -the vector

Level:intermediate
Location:src/util/tao_util.c
TAO Solver Index
Table of Contents