Home
last modified time | relevance | path

Searched refs:nneg (Results 1 – 16 of 16) sorted by relevance

/petsc/src/mat/tests/output/
H A Dex125_superlu_dist.out4 MatInertia: nneg: 0, nzero: 0, npos: 36
14 MatInertia: nneg: 0, nzero: 0, npos: 36
H A Dex127_superlu_dist.out1 MatInertia: nneg: 8, nzero: 0, npos: 1
/petsc/src/ksp/ksp/tests/
H A Dex33.c16 PetscInt nneg, nzero, npos; in main() local
123 PetscCall(MatGetInertia(F, &nneg, &nzero, &npos)); in main()
126 …nneg: %" PetscInt_FMT ", nzero: %" PetscInt_FMT ", npos: %" PetscInt_FMT "\n", nneg, nzero, npos)); in main()
/petsc/src/ksp/ksp/tests/output/
H A Dex33.out1 MatInertia: nneg: 17, nzero: 0, npos: 83
/petsc/src/mat/tests/
H A Dex127.c110 PetscInt nneg, nzero, npos; in main() local
117 PetscCall(MatGetInertia(F, &nneg, &nzero, &npos)); in main()
118 …nneg: %" PetscInt_FMT ", nzero: %" PetscInt_FMT ", npos: %" PetscInt_FMT "\n", nneg, nzero, npos)); in main()
H A Dex125.c365 PetscInt nneg, nzero, npos; in main() local
376 PetscCall(MatGetInertia(F, &nneg, &nzero, &npos)); in main()
377 …nneg: %" PetscInt_FMT ", nzero: %" PetscInt_FMT ", npos: %" PetscInt_FMT "\n", nneg, nzero, npos)); in main()
/petsc/src/vec/vec/impls/seq/
H A Dbvec2.c576 PetscCount k, nneg; in VecSetPreallocationCOO_Seq() local
590 nneg = k; in VecSetPreallocationCOO_Seq()
593 …PetscCheck(!nneg || x->stash.ignorenegidx, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Found a neg… in VecSetPreallocationCOO_Seq()
601 if (nneg) { /* Discard leading negative indices */ in VecSetPreallocationCOO_Seq()
603 PetscCall(PetscMalloc1(coo_n - nneg, &perm1_new)); in VecSetPreallocationCOO_Seq()
604 PetscCall(PetscArraycpy(perm1_new, perm1 + nneg, coo_n - nneg)); in VecSetPreallocationCOO_Seq()
611 vs->tot1 = coo_n - nneg; in VecSetPreallocationCOO_Seq()
/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c915 PetscCount n1 = coo_n, nneg, *perm; in VecSetPreallocationCOO_MPI() local
943 nneg = k; in VecSetPreallocationCOO_MPI()
944 …PetscCall(PetscSortedIntUpperBound(i1, nneg, n1, rend - 1 - PETSC_INT_MAX, &rem)); /* rem is upper… in VecSetPreallocationCOO_MPI()
945 …for (k = nneg; k < rem; k++) i1[k] += PETSC_INT_MAX; /* Revert indic… in VecSetPreallocationCOO_MPI()
950 for (k = nneg; k < rem; k++) jmap1[i1[k] - rstart + 1]++; /* Count repeats of each local entry */ in VecSetPreallocationCOO_MPI()
953 …PetscAssert(tot1 == rem - nneg, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Unexpected errors in VecSetPreal… in VecSetPreallocationCOO_MPI()
955 PetscCall(PetscArraycpy(perm1, perm + nneg, tot1)); in VecSetPreallocationCOO_MPI()
/petsc/src/tao/constrained/impls/ipm/
H A Dpdipm.c627 PetscInt nneg, nzero, npos; in PCPostSetUp_PDIPM() local
642 PetscCall(MatGetInertia(Factor, &nneg, &nzero, &npos)); in PCPostSetUp_PDIPM()
646 … ", npos %" PetscInt_FMT "(<%" PetscInt_FMT ")\n", (double)pdipm->deltaw, nneg, nzero, npos, pdipm… in PCPostSetUp_PDIPM()
650 PetscCall(MatGetInertia(Factor, &nneg, &nzero, &npos)); in PCPostSetUp_PDIPM()
655 … ", npos %" PetscInt_FMT "(<%" PetscInt_FMT ")\n", (double)pdipm->deltaw, nneg, nzero, npos, pdipm… in PCPostSetUp_PDIPM()
659 PetscCall(MatGetInertia(Factor, &nneg, &nzero, &npos)); in PCPostSetUp_PDIPM()
676 …zero %" PetscInt_FMT "(!=0), npos %" PetscInt_FMT "\n", (double)pdipm->deltac, nneg, nzero, npos)); in PCPostSetUp_PDIPM()
680 PetscCall(MatGetInertia(Factor, &nneg, &nzero, &npos)); in PCPostSetUp_PDIPM()
/petsc/src/mat/impls/aij/mpi/superlu_dist/
H A Dsuperlu_dist.c404 static PetscErrorCode MatGetInertia_SuperLU_DIST(Mat F, PetscInt *nneg, PetscInt *nzero, PetscInt *… in MatGetInertia_SuperLU_DIST() argument
436 if (nneg) *nneg = neg; in MatGetInertia_SuperLU_DIST()
/petsc/src/vec/is/is/interface/
H A Dindex.c41 PetscInt n_n, nlocals, start, first_index, npos, nneg; in ISRenumber() local
64 for (i = 0, npos = 0, nneg = 0; i < n; i++) { in ISRenumber()
66 ilocalneg[nneg++] = i; in ISRenumber()
86 for (i = 0; i < nneg; i++) leaf_data[ilocalneg[i]] = 0; in ISRenumber()
/petsc/src/mat/impls/aij/seq/mkl_pardiso/
H A Dmkl_pardiso.c819 static PetscErrorCode MatGetInertia_MKL_PARDISO(Mat F, PetscInt *nneg, PetscInt *nzero, PetscInt *n… in MatGetInertia_MKL_PARDISO() argument
824 if (nneg) *nneg = mat_mkl_pardiso->iparm[22]; in MatGetInertia_MKL_PARDISO()
/petsc/src/mat/impls/sbaij/seq/
H A Dsbaijfact.c6 PetscErrorCode MatGetInertia_SeqSBAIJ(Mat F, PetscInt *nneg, PetscInt *nzero, PetscInt *npos) in MatGetInertia_SeqSBAIJ() argument
29 if (nneg) *nneg = nneg_tmp; in MatGetInertia_SeqSBAIJ()
/petsc/src/mat/impls/aij/seq/
H A Daij.c4558 …PetscCount k, p, q, nneg, nnz, start, end; /* Index the coo array, so use PetscCount as … in MatSetPreallocationCOO_SeqAIJ() local
4595 nneg = k; in MatSetPreallocationCOO_SeqAIJ()
4596 …PetscCall(PetscMalloc1(coo_n - nneg + 1, &jmap)); /* +1 to make a CSR-like data structure. jmap[i]… in MatSetPreallocationCOO_SeqAIJ()
4602 …PetscCall(PetscShmgetAllocateArray(coo_n - nneg, sizeof(PetscInt), (void **)&Aj)); /* We have at m… in MatSetPreallocationCOO_SeqAIJ()
4697 if (nnz < coo_n - nneg) { /* Reallocate with actual number of unique nonzeros */ in MatSetPreallocationCOO_SeqAIJ()
4712 …if (nneg) { /* Discard heading entries with negative indices in perm[], as we'll access it from in… in MatSetPreallocationCOO_SeqAIJ()
4715 PetscCall(PetscMalloc1(coo_n - nneg, &perm_new)); in MatSetPreallocationCOO_SeqAIJ()
4716 PetscCall(PetscArraycpy(perm_new, perm + nneg, coo_n - nneg)); in MatSetPreallocationCOO_SeqAIJ()
4732 coo->Atot = coo_n - nneg; // Annz is seqaij->nz, so no need to record that again in MatSetPreallocationCOO_SeqAIJ()
/petsc/src/mat/impls/aij/mpi/mumps/
H A Dmumps.c2357 static PetscErrorCode MatGetInertia_SBAIJMUMPS(Mat F, PetscInt *nneg, PetscInt *nzero, PetscInt *np… in MatGetInertia_SBAIJMUMPS() argument
2367 if (nneg) *nneg = mumps->id.INFOG(12); in MatGetInertia_SBAIJMUMPS()
/petsc/src/mat/interface/
H A Dmatrix.c9294 PetscErrorCode MatGetInertia(Mat mat, PetscInt *nneg, PetscInt *nzero, PetscInt *npos) in MatGetInertia() argument
9301 PetscUseTypeMethod(mat, getinertia, nneg, nzero, npos); in MatGetInertia()