int32_t bHYPRE_IJParCSRMatrix_SetDiagOffdSizes

( bHYPRE_IJParCSRMatrix self,
  int32_t* diag_sizes,
  int32_t* offdiag_sizes,
  int32_t local_nrows,
  sidl_BaseInterface* _ex)

(Optional) Set the max number of nonzeros to expect in each row of the diagonal and off-diagonal blocks.

Documentation

(Optional) Set the max number of nonzeros to expect in each row of the diagonal and off-diagonal blocks. The diagonal block is the submatrix whose column numbers correspond to rows owned by this process, and the off-diagonal block is everything else. The arrays diag_sizes and offdiag_sizes contain estimated sizes for each row of the diagonal and off-diagonal blocks, respectively. This routine can significantly improve the efficiency of matrix construction, and should always be utilized if possible.

Not collective.

Alphabetic index