Searched refs:nzd (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/mat/tests/ ! |
| H A D | ex73.c | 135 PetscInt rstart, i, *nzd, *nzo, nzl, nzmax = 0, *ncols, nrow, j; in main() local 142 PetscCall(PetscCalloc2(2 * m, &nzd, 2 * m, &nzo)); in main() 147 nzd[2 * i] += 2; in main() 148 nzd[2 * i + 1] += 2; in main() 154 nzmax = PetscMax(nzmax, nzd[2 * i] + nzo[2 * i]); in main() 157 …PetscCall(MatCreateAIJ(PETSC_COMM_WORLD, 2 * m, 2 * m, PETSC_DECIDE, PETSC_DECIDE, 0, nzd, 0, nzo,… in main() 159 PetscCall(PetscFree2(nzd, nzo)); in main()
|
| /petsc/src/mat/impls/aij/seq/ ! |
| H A D | aij.c | 779 PetscInt nzd = 0, fshift = 1, *sptr; in MatView_SeqAIJ_ASCII() local 783 sptr[i] = nzd + 1; in MatView_SeqAIJ_ASCII() 787 if (PetscImaginaryPart(a->a[j]) != 0.0 || PetscRealPart(a->a[j]) != 0.0) nzd++; in MatView_SeqAIJ_ASCII() 789 if (a->a[j] != 0.0) nzd++; in MatView_SeqAIJ_ASCII() 794 sptr[m] = nzd + 1; in MatView_SeqAIJ_ASCII() 795 PetscCall(PetscViewerASCIIPrintf(viewer, " %" PetscInt_FMT " %" PetscInt_FMT "\n\n", m, nzd)); in MatView_SeqAIJ_ASCII()
|