petsc-3.14.6 2021-03-30
Report Typos and Errors

VecAbs

Replaces every element in a vector with its absolute value.

Synopsis

#include "petscvec.h" 
PetscErrorCode  VecAbs(Vec v)
Logically Collective on Vec

Input Parameters

v - the vector

Level

intermediate

Location

src/vec/vec/utils/vinv.c

Examples

src/tao/tutorials/ex4.c.html

Implementations

VecAbs_SeqKokkos in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx

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