HYPRE_Int HYPRE_StructMatrixSetValues

(HYPRE_StructMatrix matrix,
  HYPRE_Int* index,
  HYPRE_Int nentries,
  HYPRE_Int* entries,
  double* values)

Set matrix coefficients index by index.

Documentation

Set matrix coefficients index by index. The values array is of length nentries.

NOTE: For better efficiency, use HYPRE_StructMatrixSetBoxValues to set coefficients a box at a time.

Alphabetic index