VecPointwiseDivide#
Computes the component-wise division w[i] = x[i] / y[i]
.
Synopsis#
#include "petscvec.h"
PetscErrorCode VecPointwiseDivide(Vec w, Vec x, Vec y)
Logically Collective
Input Parameters#
x - the numerator vector
y - the denominator vector
Output Parameter#
w - the result
Note#
Any subset of the x
, y
, and w
may be the same vector.
See Also#
Vectors and Parallel Data, Vec
, VecPointwiseMult()
, VecPointwiseMax()
, VecPointwiseMin()
, VecPointwiseMaxAbs()
, VecMaxPointwiseDivide()
Level#
advanced
Location#
Examples#
src/tao/pde_constrained/tutorials/parabolic.c
src/vec/vec/tutorials/ex1.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/ts/tutorials/ex50.c
src/vec/vec/tutorials/ex20f90.F90
src/ksp/ksp/tutorials/ex72.c
src/tao/tutorials/ex4.c
src/vec/vec/tutorials/ex1f90.F90
src/tao/pde_constrained/tutorials/elliptic.c
src/vec/vec/tutorials/ex1f.F90
Implementations#
VecPointwiseDivide_Nest() in src/vec/vec/impls/nest/vecnest.c
VecPointwiseDivide_Seq() in src/vec/vec/impls/seq/bvec2.c
VecPointwiseDivide_SeqKokkos() in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx
VecPointwiseDivide_SeqViennaCL() in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages