VecStrideScatter
Scatters a single component from a vector into a multi-component vector.
Synopsis
int VecStrideScatter(Vec s,int start,Vec v,InsertMode addv)
Collective on Vec
Input Parameter
s | - the single-component vector
|
start | - starting point of the subvector (defined by a stride)
|
addv | - one of ADD_VALUES,SET_VALUES,MAX_VALUES
|
Output Parameter
v -the location where the subvector is scattered (the multi-component vector)
Notes
One must call VecSetBlockSize() on the multi-component vector before this
routine to set the stride information.
The parallel layout of the vector and the subvector must be the same;
i.e., nlocal of v = stride*(nlocal of s)
Keywords
vector, subvector
See Also
VecStrideNorm(), VecStrideGather(), VecStrideMin(), VecStrideMax()
Examples
src/vec/examples/tutorials/ex12.c
Level:advanced
Location:src/vec/utils/vinv.c
Vector Index
Table of Contents