Home
last modified time | relevance | path

Searched refs:index2 (Results 1 – 2 of 2) sorted by relevance

/petsc/src/sys/tests/
H A Dex7.c9 PetscInt x2[] = {39, 9, 19, 39, 29, 39, 29, 39}, index2[8]; in main() local
19 for (i = 0; i < 8; i++) index2[i] = i; in main()
20 PetscCall(PetscSortIntWithPermutation(8, x2, index2)); in main()
21 …" PetscInt_FMT " %" PetscInt_FMT " %" PetscInt_FMT "\n", x2[i], index2[i], x2[index2[i]])); in main()
H A Dex35.c12 PetscInt index2[] = {1, -1, 4, 12, 13, 14, 0, 7, 9, 11}; in main() local
30 …) PetscCall(PetscPrintf(PETSC_COMM_SELF, " %2" PetscInt_FMT " %g\n", index2[i], (double)x2[i])… in main()
32 PetscCall(PetscSortRealWithArrayInt(5, x2, index2)); in main()
33 …) PetscCall(PetscPrintf(PETSC_COMM_SELF, " %2" PetscInt_FMT " %g\n", index2[i], (double)x2[i])… in main()