HYPRE_Int HYPRE_IJVectorSetValues

(HYPRE_IJVector vector,
  HYPRE_Int nvalues,
  const HYPRE_Int* indices,
  const double* values)

Sets values in vector.

Documentation

Sets values in vector. The arrays values and indices are of dimension nvalues and contain the vector values to be set and the corresponding global vector indices, respectively. Erases any previous values at the specified locations and replaces them with new ones. Note that it is not possible to set values on other processors. If one tries to set a value from proc i on proc j, proc i will erase all previous occurrences of this value in its stack (including values generated with AddToValues), and treat it like a zero value. The actual value needs to be set on proc j.

Not collective.

Alphabetic index