PETSc version 3.17.0
Fix/Edit manual page

ISRenumber

Renumbers the non-negative entries of an index set in a contiguous way, starting from 0.

Synopsis

#include "petscis.h" 
PetscErrorCode ISRenumber(IS subset, IS subset_mult, PetscInt *N, IS *subset_n)
Collective on IS

Input Parameters

subset - the index set
subset_mult - the multiplicity of each entry in subset (optional, can be NULL)

Output Parameters

N - the maximum entry of the new IS
subset_n - the new IS

Notes: All negative entries are mapped to -1. Indices with non positive multiplicities are skipped.

See Also


Level

intermediate

Location

src/vec/is/is/interface/index.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages