HYPRE_Int HYPRE_SStructMatrixSetSymmetric

(HYPRE_SStructMatrix matrix,
  HYPRE_Int part,
  HYPRE_Int var,
  HYPRE_Int to_var,
  HYPRE_Int symmetric)

Define symmetry properties for the stencil entries in the matrix.

Documentation

Define symmetry properties for the stencil entries in the matrix. The boolean argument symmetric is applied to stencil entries on part part that couple variable var to variable to_var. A value of -1 may be used for part, var, or to_var to specify ``all''. For example, if part and to_var are set to -1, then the boolean is applied to stencil entries on all parts that couple variable var to all other variables.

By default, matrices are assumed to be nonsymmetric. Significant storage savings can be made if the matrix is symmetric.

Alphabetic index